summaryrefslogtreecommitdiff
path: root/auth2-none.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2-none.c')
-rw-r--r--auth2-none.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth2-none.c b/auth2-none.c
index c342addec..46a4c617e 100644
--- a/auth2-none.c
+++ b/auth2-none.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2-none.c,v 1.6 2003/08/26 09:58:43 markus Exp $"); 26RCSID("$OpenBSD: auth2-none.c,v 1.4 2002/06/27 10:35:47 deraadt Exp $");
27 27
28#include "auth.h" 28#include "auth.h"
29#include "xmalloc.h" 29#include "xmalloc.h"
@@ -100,9 +100,9 @@ userauth_none(Authctxt *authctxt)
100 if (check_nt_auth(1, authctxt->pw) == 0) 100 if (check_nt_auth(1, authctxt->pw) == 0)
101 return(0); 101 return(0);
102#endif 102#endif
103 if (options.password_authentication) 103 if (options.permit_empty_passwd == 0)
104 return (PRIVSEP(auth_password(authctxt, ""))); 104 return 0;
105 return (0); 105 return PRIVSEP(auth_password(authctxt, "")) && authctxt->valid;
106} 106}
107 107
108Authmethod method_none = { 108Authmethod method_none = {