From d9984ffd41d7a548d191d3a8440d4aa3b82d6a21 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 1 Feb 1998 14:59:43 +0000 Subject: [PATCH] Undo last change. --- nss/nss_files/files-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2