summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trackerlogic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index bff3a3c..5716207 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -320,7 +320,7 @@ exit_loop:
320 } 320 }
321 321
322 /* Handle UDP reply */ 322 /* Handle UDP reply */
323 if( proto == FLAG_TCP ) { 323 if( proto == FLAG_UDP ) {
324 ((uint32_t*)reply)[2] = htonl( OT_CLIENT_REQUEST_INTERVAL_RANDOM ); 324 ((uint32_t*)reply)[2] = htonl( OT_CLIENT_REQUEST_INTERVAL_RANDOM );
325 ((uint32_t*)reply)[3] = htonl( peer_list->peer_count - peer_list->seed_count ); 325 ((uint32_t*)reply)[3] = htonl( peer_list->peer_count - peer_list->seed_count );
326 ((uint32_t*)reply)[4] = htonl( peer_list->seed_count); 326 ((uint32_t*)reply)[4] = htonl( peer_list->seed_count);