From 4775243aa82ab568abe247e24ca56143683d64c2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 30 Jan 1998 12:53:20 +0000 Subject: Update. 1998-01-28 Andreas Jaeger * manual/memory.texi (Heap Consistency Checking): mcheck is declared in . Suggested by Jochen Voss [PR libc/438] 1998-01-28 Andreas Jaeger * sysdeps/generic/memmem.c (memmem): An empty needle is at the beginning of haystack. 1998-01-29 Andreas Jaeger * nss/nss_files/files-service.c: Correct last patch. 1998-01-30 21:29 Ulrich Drepper * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Define __libc_have_rt_sigs. * sysdeps/sparc/sparc32/__longjmp.S: Define _SETJMP_H before including . * sysdeps/sparc/sparc32/setjmp.S: Likewise. Patch from the Debian glibc/SPARC package. 1997-12-12 07:57 H.J. Lu * sysdeps/alpha/bzero.S: Fix a typo. * sysdeps/alpha/htonl.S: Ditto. * sysdeps/alpha/htons.S: Ditto. --- nss/nss_files/files-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss') diff --git a/nss/nss_files/files-service.c b/nss/nss_files/files-service.c index b63fafc..369b27bf 100644 --- a/nss/nss_files/files-service.c +++ b/nss/nss_files/files-service.c @@ -53,7 +53,7 @@ DB_LOOKUP (servbyport, 21 + (proto ? strlen (proto) : 0), ("=%d/%s", ntohs (port), proto ?: ""), { /* Must match both port and protocol. */ - if (result->s_port == ntohs (port) + if (result->s_port == port && (proto == NULL || strcmp (result->s_proto, proto) == 0)) break; -- cgit v1.1