Commit 21bd170d authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(Fmake_network_process): Convert new port number

to host byte order for `:service t' case.  From Mario Lang.
parent b809d662
......@@ -2974,7 +2974,7 @@ usage: (make-network-process &rest ARGS) */)
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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment