changeset 49119:938f153410ae

(Fmake_network_process): Convert new port number to host byte order for `:service t' case. From Mario Lang.
author Kim F. Storm <storm@cua.dk>
date Wed, 08 Jan 2003 22:16:12 +0000
parents 86ce50c64d84
children 30c4902b654d
files src/process.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Wed Jan 08 22:14:55 2003 +0000
+++ b/src/process.c	Wed Jan 08 22:16:12 2003 +0000
@@ -2974,7 +2974,7 @@
 	      if (getsockname (s, (struct sockaddr *)&sa1, &len1) == 0)
 		{
 		  ((struct sockaddr_in *)(lres->ai_addr))->sin_port = sa1.sin_port;
-		  service = make_number (sa1.sin_port);
+		  service = make_number (ntohs (sa1.sin_port));
 		  contact = Fplist_put (contact, QCservice, service);
 		}
 	    }