From: Ulrich Drepper Date: Sun, 1 Feb 1998 14:59:43 +0000 (+0000) Subject: Undo last change. X-Git-Tag: cvs/before-sparc-2_0_x-branch~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9984ffd41d7a548d191d3a8440d4aa3b82d6a21;p=thirdparty%2Fglibc.git Undo last change. --- diff --git a/nss/nss_files/files-service.c b/nss/nss_files/files-service.c index b63fafcd1ee..369b27bf240 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;