diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,7 +11,7 @@ | |||
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "includes.h" | 13 | #include "includes.h" |
14 | RCSID("$Id: sshd.c,v 1.43 1999/12/26 03:04:33 damien Exp $"); | 14 | RCSID("$Id: sshd.c,v 1.44 1999/12/26 23:45:54 damien Exp $"); |
15 | 15 | ||
16 | #ifdef HAVE_POLL_H | 16 | #ifdef HAVE_POLL_H |
17 | # include <poll.h> | 17 | # include <poll.h> |
@@ -242,6 +242,9 @@ int do_pam_auth(const char *user, const char *password) | |||
242 | { | 242 | { |
243 | int pam_retval; | 243 | int pam_retval; |
244 | 244 | ||
245 | if ((options.permit_empty_passwd == 0) && (password[0] == '\0') | ||
246 | return 0; | ||
247 | |||
245 | pampasswd = password; | 248 | pampasswd = password; |
246 | 249 | ||
247 | pam_retval = pam_authenticate((pam_handle_t *)pamh, 0); | 250 | pam_retval = pam_authenticate((pam_handle_t *)pamh, 0); |