summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--auth.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 43bdf3c48..ed52bdc96 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
10120020317 10420020317
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 $
diff --git a/auth.c b/auth.c
index f368faf21..a9f981d18 100644
--- a/auth.c
+++ b/auth.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth.c,v 1.40 2002/03/19 14:27:39 markus Exp $"); 26RCSID("$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}