This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[patch] nisplus-ethers.c: fix incorrect test for name == NULL
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: [patch] nisplus-ethers.c: fix incorrect test for name == NULL
- From: Ben Collins <bcollins at debian dot org>
- Date: Mon, 29 Jan 2001 10:31:16 -0500
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 '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
--- 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;