From: Alan T. DeKok Date: Fri, 4 Mar 2016 01:32:56 +0000 (-0500) Subject: Increment proxy responses in the right place X-Git-Tag: release_3_0_12~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6a0542547289ade38c3a73b8f2b52e39bc91cc8;p=thirdparty%2Ffreeradius-server.git Increment proxy responses in the right place --- diff --git a/src/main/process.c b/src/main/process.c index 06876f14f5e..2252889455f 100644 --- a/src/main/process.c +++ b/src/main/process.c @@ -2487,7 +2487,6 @@ int request_proxy_reply(RADIUS_PACKET *packet) } request = fr_packet2myptr(REQUEST, proxy, proxy_p); - request->num_proxied_responses++; /* needs to be protected by lock */ PTHREAD_MUTEX_UNLOCK(&proxy_mutex); @@ -2528,6 +2527,8 @@ int request_proxy_reply(RADIUS_PACKET *packet) sock->last_packet = now.tv_sec; } + request->num_proxied_responses++; + /* * If we have previously seen a reply, ignore the * duplicate.