From: Alan T. DeKok Date: Thu, 15 Jun 2017 19:42:49 +0000 (-0400) Subject: client is NULL for the new sockets X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d84e0ea9a21e6113aa8ea8864db621f5cab38e2d;p=thirdparty%2Ffreeradius-server.git client is NULL for the new sockets --- diff --git a/src/modules/proto_radius/proto_radius_status.c b/src/modules/proto_radius/proto_radius_status.c index 83a6626f486..eb84764ab45 100644 --- a/src/modules/proto_radius/proto_radius_status.c +++ b/src/modules/proto_radius/proto_radius_status.c @@ -182,7 +182,7 @@ static fr_io_final_t mod_process(REQUEST *request, UNUSED fr_io_action_t action) * This is useful to work around broken DSR implementations * and other routing issues. */ - if (request->client->src_ipaddr.af != AF_UNSPEC) { + if (request->client && (request->client->src_ipaddr.af != AF_UNSPEC)) { request->reply->src_ipaddr = request->client->src_ipaddr; } #endif