From: Joshua Colp Date: Tue, 4 Sep 2007 13:10:56 +0000 (+0000) Subject: (closes issue #10610) X-Git-Tag: 1.4.12~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e7eef085c1340ed4ba15c4e7896374a6f8f6286;p=thirdparty%2Fasterisk.git (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: https://origsvn.digium.com/svn/asterisk/branches/1.4@81435 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/dns.c b/main/dns.c index 36e819cb9d..2e17f6dd3a 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; }