From: Alan T. DeKok Date: Tue, 6 Oct 2009 08:21:45 +0000 (+0200) Subject: Ensure that there is a cleanup event for proxied packets X-Git-Tag: release_2_1_8~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f62a7fd24f98db5ddb124409133e16bba9bd6040;p=thirdparty%2Ffreeradius-server.git Ensure that there is a cleanup event for proxied packets If there was no reply, clean up, reject, etc. the request. This doesn't matter so much for normal clients, as they will retransmit and cause the old request to be deleted from the request hash. But detail requests have random ports (for other reasons), so they won't be cleaned up by new packets. Therefore, we need to clean them up... --- diff --git a/src/main/event.c b/src/main/event.c index 62d9dbf0dfb..d23c24689e4 100644 --- a/src/main/event.c +++ b/src/main/event.c @@ -1045,6 +1045,12 @@ static void no_response_to_proxied_request(void *ctx) request->proxy->dst_port); post_proxy_fail_handler(request); + } else { + /* + * Ensure that there is a callback for the request. + */ + request->child_state = REQUEST_RUNNING; + wait_a_bit(request); } /*