service-info using a port number is broken for little endian machines

This commit is contained in:
bdc 1996-10-03 17:49:20 +00:00
parent c4c6a28385
commit 89f6fed034
2 changed files with 4 additions and 1 deletions

View File

@ -57,3 +57,6 @@ Reported by Sean Doran 29 Jul 96. Fixed by bdc 1 Oct 96.
exportlist.aix generated correctly on aix 4 now
Reported by Michael Becker 2 June 96. Fix by Michael Sperber 2 Oct 96.
service-info using a port number is broken for little endian machines
Reported by Jin S. Choi 3 Oct 1996. Fixed by bdc 3 Oct 96.

View File

@ -485,7 +485,7 @@ int scheme_serv_port2serv_info(int in_port,
{
struct servent *serv;
serv=getservbyport(in_port,in_proto);
serv=getservbyport(ntohs(in_port),in_proto);
if(serv==NULL)
{