From 0dafc2ab2640f9a7ef6f5319d247a1c7b9d1127a Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 6 Oct 2008 19:43:52 +0000 Subject: Bugfix: overwrote bencoded data with udp reply data when sending an event=stopped --- trackerlogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trackerlogic.c') diff --git a/trackerlogic.c b/trackerlogic.c index bff3a3c..5716207 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -320,7 +320,7 @@ exit_loop: } /* Handle UDP reply */ - if( proto == FLAG_TCP ) { + if( proto == FLAG_UDP ) { ((uint32_t*)reply)[2] = htonl( OT_CLIENT_REQUEST_INTERVAL_RANDOM ); ((uint32_t*)reply)[3] = htonl( peer_list->peer_count - peer_list->seed_count ); ((uint32_t*)reply)[4] = htonl( peer_list->seed_count); -- cgit v1.2.3