diff options
author | mouring <mouring> | 2002-03-22 03:08:30 +0000 |
---|---|---|
committer | mouring <mouring> | 2002-03-22 03:08:30 +0000 |
commit | 3dd92be01452493abb0b3005e535fb94fbb41d94 (patch) | |
tree | 6801d76363b65ca9b02555c055a0a46f476bf3af /auth.c | |
parent | adb1bf03911e9ccb799ef7ed787c7645a655777f (diff) | |
download | openssh-3dd92be01452493abb0b3005e535fb94fbb41d94.tar.gz |
- markus@cvs.openbsd.org 2002/03/19 15:31:47
[auth.c]
check for NULL; from provos@
Diffstat (limited to 'auth.c')
-rw-r--r-- | auth.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth.c,v 1.40 2002/03/19 14:27:39 markus Exp $"); +RCSID("$OpenBSD: auth.c,v 1.41 2002/03/19 15:31:47 markus Exp $"); #ifdef HAVE_LOGIN_H #include <login.h> @@ -470,5 +470,7 @@ getpwnamallow(const char *user) auth_close(as); #endif #endif - return (pwcopy(pw)); + if (pw != NULL) + return (pwcopy(pw)); + return (NULL); } |