[glibc] hesiod: fix swapped arguments in service parser
Adhemerval Zanella via Glibc-cvs <[email protected]> Fri, 29 May 2026 17:00:54 +0000 (GMT)
| Newsgroups | gmane.comp.lib.glibc.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=41e9457c53610c6c79a7e036f61de032686e9ef0 commit 41e9457c53610c6c79a7e036f61de032686e9ef0 Author: Adhemerval Zanella <[email protected]> Date: Thu May 28 17:30:07 2026 -0300 hesiod: fix swapped arguments in service parser The port number in the service file is a decimal number followed by a single slash. Reviewed-by: H.J. Lu <[email protected]> Diff: --- hesiod/nss_hesiod/hesiod-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hesiod/nss_hesiod/hesiod-service.c b/hesiod/nss_hesiod/hesiod-service.c index 3b5c704660..11ee302853 100644 --- a/hesiod/nss_hesiod/hesiod-service.c +++ b/hesiod/nss_hesiod/hesiod-service.c @@ -41,7 +41,7 @@ LINE_PARSER ("#", STRING_FIELD (result->s_name, ISSC_OR_SPACE, 1); STRING_FIELD (result->s_proto, ISSC_OR_SPACE, 1); - INT_FIELD (result->s_port, ISSC_OR_SPACE, 10, 0, htons); + INT_FIELD (result->s_port, ISSC_OR_SPACE, 0, 10, htons); ) enum nss_status