From eb6ddec1aaedd5a9c64ee6b1890bb6bcbc6c2c00 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Mon, 1 Feb 1999 19:56:49 +0000 Subject: Added a missing PR_htons call. Thanks to Bert Driehuis for the bug report and fix. --- pr/tests/sel_spd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr/tests/sel_spd.c b/pr/tests/sel_spd.c index 640660be..919a484b 100644 --- a/pr/tests/sel_spd.c +++ b/pr/tests/sel_spd.c @@ -154,7 +154,7 @@ _server_thread(void *arg_id) memset(&sa, 0 , sizeof(sa)); sa.inet.family = PR_AF_INET; - sa.inet.port = PORT_BASE + *id; + sa.inet.port = PR_htons(PORT_BASE + *id); sa.inet.ip = PR_htonl(PR_INADDR_ANY); if ( PR_Bind(sock, &sa) < 0) { -- cgit v1.2.1