summaryrefslogtreecommitdiff
path: root/main/dns.c
diff options
context:
space:
mode:
authorsnuffy <snuffy22@gmail.com>2016-11-20 09:19:18 +1100
committersnuffy <snuffy22@gmail.com>2016-11-20 09:19:18 +1100
commitb546497fe0d80cfc44ecf0e88d31c7cedf5eccd8 (patch)
treea45c40289d4fb971f24180ce8c34f8df4006bb03 /main/dns.c
parent7a8d6bc81b40fddffbdc00d4e9fc98856fd052ff (diff)
Add support for older name resolving version libraries like openBSD
Fix support of OS's like openBSD that use an older nameser.h, this change reverts the defines to the older style which on other systems is found in nameser_compat.h Tested on openBSD 6.0, Debian 8 ASTERISK-26608 #close Change-Id: Iffb36caab8c5aa9dece0ce2d009041f7b56cc86a
Diffstat (limited to 'main/dns.c')
-rw-r--r--main/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/dns.c b/main/dns.c
index 3b198a0f3..76f8075e5 100644
--- a/main/dns.c
+++ b/main/dns.c
@@ -555,7 +555,7 @@ enum ast_dns_search_result ast_search_dns_ex(void *context, const char *dname, i
if (dns_response_len < 0) {
ast_debug(1, "DNS search failed for %s\n", dname);
- response_handler(context, (unsigned char *)"", 0, ns_r_nxdomain);
+ response_handler(context, (unsigned char *)"", 0, NXDOMAIN);
return AST_DNS_SEARCH_FAILURE;
}