]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
vp may be NULL
authorAlan T. DeKok <aland@freeradius.org>
Sun, 4 Mar 2018 17:51:42 +0000 (12:51 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 4 Mar 2018 17:51:42 +0000 (12:51 -0500)
src/modules/rlm_eap/rlm_eap.c

index ba6b86950151fb6254610755fa6c725a1a92e430..81913359742d276e5eea0af54a029c2325607eab 100644 (file)
@@ -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;