Added a missing PR_htons call. Thanks to Bert Driehuis

<bert_driehuis@nl.compuware.com> for the bug report and fix.


git-svn-id: svn://10.0.0.236/trunk@19192 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wtc%netscape.com
1999-02-01 19:56:49 +00:00
parent d381cc106d
commit a425bde170

View File

@@ -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) {