From 5b3072de0c12038a184350c77aa9f3b9dbb22c03 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Tue, 30 Mar 2021 21:52:16 -0400 Subject: [PATCH] let's not crash, m'kay? --- src/main/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.47.2