Don't get excited if there's no user name
authoraland <aland>
Mon, 18 Aug 2003 18:37:02 +0000 (18:37 +0000)
committeraland <aland>
Mon, 18 Aug 2003 18:37:02 +0000 (18:37 +0000)
src/modules/rlm_unix/rlm_unix.c

index 2dec073..04b08ad 100644 (file)
@@ -209,6 +209,9 @@ static int groupcmp(void *instance, REQUEST *req, VALUE_PAIR *request, VALUE_PAI
                return 1;
        }
 
+       if (!req->username) {
+               return -1;
+       }
        username = (char *)req->username->strvalue;
 
        if (group_inst->cache_passwd &&