check for username, too
authorAlan T. DeKok <aland@freeradius.org>
Fri, 26 May 2017 13:04:12 +0000 (09:04 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 26 May 2017 13:04:12 +0000 (09:04 -0400)
src/main/auth.c

index ecf42ed..79e639e 100644 (file)
@@ -197,7 +197,7 @@ static int CC_HINT(nonnull) rad_check_password(REQUEST *request)
         *      Warn if more than one Auth-Type was found, because only the last
         *      one found will actually be used.
         */
-       if ((auth_type_count > 1) && (rad_debug_lvl)) {
+       if ((auth_type_count > 1) && (rad_debug_lvl) && request->username) {
                RERROR("Warning:  Found %d auth-types on request for user '%s'",
                        auth_type_count, request->username->vp_strvalue);
        }