]> andersk Git - openssh.git/blobdiff - auth-passwd.c
- OpenBSD CVS updates:
[openssh.git] / auth-passwd.c
index 9edffd4fe294d9727e47ce0807fda890854d967e..8e28adc3ef51de1f2002b0b8a3942e765a45fa03 100644 (file)
@@ -43,13 +43,13 @@ auth_password(struct passwd * pw, const char *password)
        struct spwd *spw;
 #endif
 
+       /* deny if no user. */
+       if (pw == NULL)
+               return 0;
        if (pw->pw_uid == 0 && options.permit_root_login == 2)
                return 0;
        if (*password == '\0' && options.permit_empty_passwd == 0)
                return 0;
-       /* deny if no user. */
-       if (pw == NULL)
-               return 0;
 
 #ifdef SKEY
        if (options.skey_authentication == 1) {
This page took 0.09906 seconds and 4 git commands to generate.