diff options
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ int | |||
73 | allowed_user(struct passwd * pw) | 73 | allowed_user(struct passwd * pw) |
74 | { | 74 | { |
75 | struct stat st; | 75 | struct stat st; |
76 | const char *hostname = NULL, *ipaddr = NULL, *passwd; | 76 | const char *hostname = NULL, *ipaddr = NULL, *passwd = NULL; |
77 | char *shell; | 77 | char *shell; |
78 | int i; | 78 | int i; |
79 | #if defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW) | 79 | #if defined(HAVE_SHADOW_H) && !defined(DISABLE_SHADOW) |
@@ -131,7 +131,7 @@ allowed_user(struct passwd * pw) | |||
131 | #endif | 131 | #endif |
132 | 132 | ||
133 | /* check for locked account */ | 133 | /* check for locked account */ |
134 | if (passwd && *passwd) { | 134 | if (!options.use_pam && passwd && *passwd) { |
135 | int locked = 0; | 135 | int locked = 0; |
136 | 136 | ||
137 | #ifdef LOCKED_PASSWD_STRING | 137 | #ifdef LOCKED_PASSWD_STRING |