Commit bab1813c authored by Pekka Pessi's avatar Pekka Pessi

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

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

darcs-hash:20070228171850-55b16-3b068983d4adb2d67832f5e723143bdd472e17ed.gz
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 HAVE_SCTP
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