Merge "res_rtp: Fix regression when IPv6 is not available." into 14

This commit is contained in:
Joshua Colp
2016-12-01 17:13:09 -06:00
committed by Gerrit Code Review
4 changed files with 33 additions and 2 deletions
+12
View File
@@ -2420,6 +2420,18 @@ char *ast_utils_which(const char *binary, char *fullpath, size_t fullpath_size)
return NULL;
}
int ast_check_ipv6(void)
{
int udp6_socket = socket(AF_INET6, SOCK_DGRAM, 0);
if (udp6_socket < 0) {
return 0;
}
close(udp6_socket);
return 1;
}
void DO_CRASH_NORETURN ast_do_crash(void)
{
#if defined(DO_CRASH)