- [auth-passwd.c]
check for NULL 1st
+19991230
+ - OpenBSD CVS updates:
+ - [auth-passwd.c]
+ check for NULL 1st
+
19991229
- Applied another NetBSD portability patch from David Rankin
<drankin@bohemians.lexington.ky.us>
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) {