[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-alpha
Subject:    [patch] nisplus-ethers.c: fix incorrect test for name == NULL
From:       Ben Collins <bcollins () debian ! org>
Date:       2001-01-29 15:31:16
[Download RAW message or body]

This was reported by Laurent Constantin <laurent.constantin@aql.fr>.

2001-01-29  Ben Collins  <bcollins@debian.org>

	* nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r):
	Fix check for name == NULL

-- 
 -----------=======-=-======-=========-----------=====------------=-=------
/  Ben Collins  --  ...on that fantastic voyage...  --  Debian GNU/Linux   \
`  bcollins@debian.org  --  bcollins@openldap.org  --  bcollins@linux.com  '
 `---=========------=======-------------=-=-----=-===-======-------=--=---'

["nisplus-ethers.diff" (text/plain)]

--- nis/nss_nisplus/nisplus-ethers.c 	2000/12/27 19:56:51	1.14
+++ nis/nss_nisplus/nisplus-ethers.c 	2001/01/29 15:25:55
@@ -222,7 +222,7 @@
 	return status;
     }
 
-  if (name != NULL)
+  if (name == NULL)
     {
       *errnop = EINVAL;
       return NSS_STATUS_UNAVAIL;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic