diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | auth.c | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -97,6 +97,9 @@ | |||
97 | - markus@cvs.openbsd.org 2002/03/19 14:27:39 | 97 | - markus@cvs.openbsd.org 2002/03/19 14:27:39 |
98 | [auth.c auth1.c auth2.c] | 98 | [auth.c auth1.c auth2.c] |
99 | make getpwnamallow() allways call pwcopy() | 99 | make getpwnamallow() allways call pwcopy() |
100 | - markus@cvs.openbsd.org 2002/03/19 15:31:47 | ||
101 | [auth.c] | ||
102 | check for NULL; from provos@ | ||
100 | 103 | ||
101 | 20020317 | 104 | 20020317 |
102 | - (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted, | 105 | - (tim) [configure.ac] Assume path given with --with-pid-dir=PATH is wanted, |
@@ -7943,4 +7946,4 @@ | |||
7943 | - Wrote replacements for strlcpy and mkdtemp | 7946 | - Wrote replacements for strlcpy and mkdtemp |
7944 | - Released 1.0pre1 | 7947 | - Released 1.0pre1 |
7945 | 7948 | ||
7946 | $Id: ChangeLog,v 1.1952 2002/03/22 03:04:08 mouring Exp $ | 7949 | $Id: ChangeLog,v 1.1953 2002/03/22 03:08:30 mouring Exp $ |
@@ -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 | } |