summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index e3596de50..761ed52c0 100644
--- a/sshd.c
+++ b/sshd.c
@@ -11,7 +11,7 @@
11 */ 11 */
12 12
13#include "includes.h" 13#include "includes.h"
14RCSID("$Id: sshd.c,v 1.43 1999/12/26 03:04:33 damien Exp $"); 14RCSID("$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);