From aa7b59d65e863c8e28c7a69610dfc105e1b9bf79 Mon Sep 17 00:00:00 2001 From: file Date: Tue, 4 Sep 2007 13:10:56 +0000 Subject: (closes issue #10610) Reported by: john Patches: dns.c.patch uploaded by john (license 218) Tested by: mvanbaak Don't return a match if no SRV record actually exists. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81435 f38db490-d61c-443f-a65b-d21fe96a405b --- main/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main') diff --git a/main/dns.c b/main/dns.c index 36e819cb9..2e17f6dd3 100644 --- a/main/dns.c +++ b/main/dns.c @@ -267,7 +267,7 @@ int ast_search_dns(void *context, ast_log(LOG_WARNING, "DNS Parse error for %s\n", dname); ret = -1; } - else if (ret == 0) { + else if (res == 0) { ast_log(LOG_DEBUG, "No matches found in DNS for %s\n", dname); ret = 0; } -- cgit v1.2.3