diff options
author | wtc%netscape.com <devnull@localhost> | 1999-02-01 19:56:49 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-02-01 19:56:49 +0000 |
commit | eb6ddec1aaedd5a9c64ee6b1890bb6bcbc6c2c00 (patch) | |
tree | d465ecc4c0300c743dcde0763ac288484b734022 | |
parent | b7a5b21b8f1bef209384a26de9386c63439aa0cc (diff) | |
download | nspr-hg-eb6ddec1aaedd5a9c64ee6b1890bb6bcbc6c2c00.tar.gz |
Added a missing PR_htons call. Thanks to Bert Driehuis
<bert_driehuis@nl.compuware.com> for the bug report and fix.
-rw-r--r-- | pr/tests/sel_spd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |