From: Alan T. DeKok Date: Sun, 4 Mar 2018 17:51:42 +0000 (-0500) Subject: vp may be NULL X-Git-Tag: release_3_0_17~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec673c02ebda2bceab3828b9308db21fd4348090;p=thirdparty%2Ffreeradius-server.git vp may be NULL --- diff --git a/src/modules/rlm_eap/rlm_eap.c b/src/modules/rlm_eap/rlm_eap.c index ba6b8695015..81913359742 100644 --- a/src/modules/rlm_eap/rlm_eap.c +++ b/src/modules/rlm_eap/rlm_eap.c @@ -472,7 +472,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authenticate(void *instance, REQUEST *re * vp->vp_strvalue is still a NUL-terminated C * string. */ - if (inst->mod_accounting_username_bug) { + if (vp && inst->mod_accounting_username_bug) { char const *old = vp->vp_strvalue; char *new;