diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 03:08:30 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-03-22 03:08:30 +0000 |
commit | f34e4eb6c730fa38640aeef5f6801035caaba460 (patch) | |
tree | 93a790ff9e8bc626d00b45f9c81096c005985a69 /auth.c | |
parent | 7ebb635d812d68772ce3fb0b64d798c54fbfab71 (diff) |
- 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 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: auth.c,v 1.40 2002/03/19 14:27:39 markus Exp $"); | 26 | RCSID("$OpenBSD: auth.c,v 1.41 2002/03/19 15:31:47 markus Exp $"); |
27 | 27 | ||
28 | #ifdef HAVE_LOGIN_H | 28 | #ifdef HAVE_LOGIN_H |
29 | #include <login.h> | 29 | #include <login.h> |
@@ -470,5 +470,7 @@ getpwnamallow(const char *user) | |||
470 | auth_close(as); | 470 | auth_close(as); |
471 | #endif | 471 | #endif |
472 | #endif | 472 | #endif |
473 | return (pwcopy(pw)); | 473 | if (pw != NULL) |
474 | return (pwcopy(pw)); | ||
475 | return (NULL); | ||
474 | } | 476 | } |