Commit bab1813c authored by Pekka Pessi's avatar Pekka Pessi
Browse files

su_addrinfo.c: use empty or NULL service for port 0

Port 0 used as ephemeral port when bind()ing.

parent 88819c87
......@@ -890,6 +890,9 @@ int su_getaddrinfo(char const *node, char const *service,
int retval;
su_addrinfo_t *ai;
if (!service || service[0] == '\0')
service = "0";
if (res && hints && hints->ai_protocol == IPPROTO_SCTP) {
su_addrinfo_t system_hints[1];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment