Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/lib/libwrap Pull up revision 1.13 (requested by lukem in ...



details:   https://anonhg.NetBSD.org/src/rev/9a05da8374d8
branches:  netbsd-3
changeset: 576545:9a05da8374d8
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Jul 11 11:14:02 2005 +0000

description:
Pull up revision 1.13 (requested by lukem in ticket #537):
getpw*_r() may return 0 and set pwd==NULL

diffstat:

 lib/libwrap/options.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 11f50de3a807 -r 9a05da8374d8 lib/libwrap/options.c
--- a/lib/libwrap/options.c     Mon Jul 11 11:12:47 2005 +0000
+++ b/lib/libwrap/options.c     Mon Jul 11 11:14:02 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: options.c,v 1.11.6.1 2005/07/11 11:12:47 tron Exp $    */
+/*     $NetBSD: options.c,v 1.11.6.2 2005/07/11 11:14:02 tron Exp $    */
 
  /*
   * General skeleton for adding options to the access control language. The
@@ -35,7 +35,7 @@
 #if 0
 static char sccsid[] = "@(#) options.c 1.17 96/02/11 17:01:31";
 #else
-__RCSID("$NetBSD: options.c,v 1.11.6.1 2005/07/11 11:12:47 tron Exp $");
+__RCSID("$NetBSD: options.c,v 1.11.6.2 2005/07/11 11:14:02 tron Exp $");
 #endif
 #endif
 
@@ -298,7 +298,7 @@
 
     if ((group = split_at(value, '.')) != 0)
        group_option(group, request);
-    if (getpwnam_r(value, &pws, pwbuf, sizeof(pwbuf), &pwd) != 0)
+    if (getpwnam_r(value, &pws, pwbuf, sizeof(pwbuf), &pwd) != 0 || pwd == NULL)
        tcpd_jump("unknown user: \"%s\"", value);
     endpwent();
 



Home | Main Index | Thread Index | Old Index