AROS: we need htons to convert socket port to network order
parent
f69bd55482
commit
5c9c5f15f1
|
@ -40,7 +40,7 @@ struct addrinfo **res)
|
||||||
|
|
||||||
sin->sin_port=0;
|
sin->sin_port=0;
|
||||||
if (service) {
|
if (service) {
|
||||||
sin->sin_port=atoi(service);
|
sin->sin_port=htons(atoi(service));
|
||||||
}
|
}
|
||||||
|
|
||||||
*res = malloc(sizeof(struct addrinfo));
|
*res = malloc(sizeof(struct addrinfo));
|
||||||
|
|
Loading…
Reference in New Issue