From: Alan T. DeKok Date: Wed, 31 Mar 2021 01:52:16 +0000 (-0400) Subject: let's not crash, m'kay? X-Git-Tag: release_3_0_22~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b3072de0c12038a184350c77aa9f3b9dbb22c03;p=thirdparty%2Ffreeradius-server.git let's not crash, m'kay? --- diff --git a/src/main/auth.c b/src/main/auth.c index c3b776083e..76f87b7289 100644 --- a/src/main/auth.c +++ b/src/main/auth.c @@ -868,7 +868,7 @@ int rad_virtual_server(REQUEST *request) * existing, and being (mostly) unique to that * user. */ - if (!request->parent && + if (!request->parent && request->username && (request->username->da->attr == PW_USER_NAME) && (request->username->vp_strvalue[0] == '@') && !fr_pair_find_by_num(request->packet->vps, PW_STRIPPED_USER_NAME, 0, TAG_ANY)) {