]> andersk Git - openssh.git/blobdiff - auth.c
- markus@cvs.openbsd.org 2002/03/19 15:31:47
[openssh.git] / auth.c
diff --git a/auth.c b/auth.c
index f368faf21bd81049b411a26e3569361bb2852e3e..a9f981d18e1bfd7a39b0a357a8e023acbdc1e9c6 100644 (file)
--- a/auth.c
+++ b/auth.c
@@ -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);
 }
This page took 0.035089 seconds and 4 git commands to generate.