]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
client is NULL for the new sockets
authorAlan T. DeKok <aland@freeradius.org>
Thu, 15 Jun 2017 19:42:49 +0000 (15:42 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 15 Jun 2017 19:42:49 +0000 (15:42 -0400)
src/modules/proto_radius/proto_radius_status.c

index 83a6626f486893104a4aa3aef2ac0de2944fd4f6..eb84764ab45700e50dd2d31f7ce0cb6dc17a17e3 100644 (file)
@@ -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