summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2008-10-06 19:43:52 +0000
committererdgeist <>2008-10-06 19:43:52 +0000
commit0dafc2ab2640f9a7ef6f5319d247a1c7b9d1127a (patch)
tree836a01227b6eb3dcf1ab5f4775120ee26c266ebc
parentfae73214af69b5d4f649e74b7b6920ff8229a852 (diff)
Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped
-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);