From cb5076cfe219ca6e89058af6ae3e44b91947f406 Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Mon, 1 Feb 1999 19:56:49 +0000 Subject: [PATCH] Added a missing PR_htons call. Thanks to Bert Driehuis for the bug report and fix. --- nsprpub/pr/tests/sel_spd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsprpub/pr/tests/sel_spd.c b/nsprpub/pr/tests/sel_spd.c index 640660be22db..919a484b7d12 100644 --- a/nsprpub/pr/tests/sel_spd.c +++ b/nsprpub/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) {