Commit e7273e3a authored by Felix Paul Kühne's avatar Felix Paul Kühne

Revert "src: fix crash in getaddrinfo due to bugs in the OSX runtime"

This reverts commit db8ff4e3.
parent 4d7465b4
......@@ -121,13 +121,5 @@ int vlc_getaddrinfo (const char *node, unsigned port,
node = NULL;
}
#if defined(__APPLE__) && defined(AI_NUMERICSERV)
/* work-around a segfault in libSystem on Darwin 12 and later
* if AI_NUMERICSERV is set and servname is either NULL or "0"
* radar://13058317 */
if ((hints->ai_flags & AI_NUMERICSERV) && (servname == NULL || (servname[0] == '0' && servname[1] == 0)))
servname = (char *)"00";
#endif
return getaddrinfo (node, servname, hints, res);
}
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