]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
(closes issue #10610)
authorJoshua Colp <jcolp@digium.com>
Tue, 4 Sep 2007 13:10:56 +0000 (13:10 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 4 Sep 2007 13:10:56 +0000 (13:10 +0000)
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

main/dns.c

index 36e819cb9d4b32a256de00f6a05d94722a83ee5c..2e17f6dd3a1d5d99a328b743130d4f69e8d8a8fc 100644 (file)
@@ -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;
                }