diff options
Diffstat (limited to 'nss/getent.c')
-rw-r--r-- | nss/getent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nss/getent.c b/nss/getent.c index 02f2034efb..d3a9fde1e1 100644 --- a/nss/getent.c +++ b/nss/getent.c @@ -366,7 +366,7 @@ services_keys (int number, char *key[]) *proto++ = '\0'; if (isdigit (key[i][0])) - serv = getservbyport (atol (key[i]), proto); + serv = getservbyport (htons (atol (key[i])), proto); else serv = getservbyname (key[i], proto); |