Skip to content
Snippets Groups Projects
Commit 7f67d531 authored by deuce's avatar deuce
Browse files

Use htons() on the port value.

parent 8d746c0f
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ int retry_bind(SOCKET s, const struct sockaddr *addr, socklen_t addrlen, uint re
if(lprintf!=NULL) {
if(addr->sa_family==AF_INET) {
lprintf(LOG_WARNING,"%04d !WARNING %d (%d) error binding socket to port %d"
,s, result, ERROR_VALUE,((SOCKADDR_IN *)(addr))->sin_port);
,s, result, ERROR_VALUE,htons(((SOCKADDR_IN *)(addr))->sin_port));
}
else {
lprintf(LOG_WARNING,"%04d !WARNING %d (%d) error binding socket"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment