diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-23 21:48:58 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-23 21:48:58 +0200 |
| commit | de67a4a721c0fda9a9b5955f235baafba9ba393d (patch) | |
| tree | 38627ee2df6927e715e7043809d281b16abdbddc /proxy.c | |
| parent | a8def0e5eac98500267b52c7f0d9a7fbc2145a81 (diff) | |
Rework config file parser and tidy up mem inits
Diffstat (limited to 'proxy.c')
| -rw-r--r-- | proxy.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -18,7 +18,6 @@ | |||
| 18 | #include <unistd.h> | 18 | #include <unistd.h> |
| 19 | 19 | ||
| 20 | /* Libowfat */ | 20 | /* Libowfat */ |
| 21 | #include "byte.h" | ||
| 22 | #include "io.h" | 21 | #include "io.h" |
| 23 | #include "iob.h" | 22 | #include "iob.h" |
| 24 | #include "ip6.h" | 23 | #include "ip6.h" |
| @@ -142,8 +141,8 @@ size_t add_peer_to_torrent_proxy(ot_hash hash, ot_peer *peer, size_t peer_size) | |||
| 142 | return -1; | 141 | return -1; |
| 143 | } | 142 | } |
| 144 | 143 | ||
| 145 | byte_zero(torrent->peer_list6, sizeof(ot_peerlist)); | 144 | memset(torrent->peer_list6, 0, sizeof(ot_peerlist)); |
| 146 | byte_zero(torrent->peer_list4, sizeof(ot_peerlist)); | 145 | memset(torrent->peer_list4, 0, sizeof(ot_peerlist)); |
| 147 | } | 146 | } |
| 148 | 147 | ||
| 149 | peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; | 148 | peer_list = peer_size == OT_PEER_SIZE6 ? torrent->peer_list6 : torrent->peer_list4; |
