[asterisk-commits] file: branch 1.4 r81435 - /branches/1.4/main/dns.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 4 08:10:57 CDT 2007


Author: file
Date: Tue Sep  4 08:10:56 2007
New Revision: 81435

URL: http://svn.digium.com/view/asterisk?view=rev&rev=81435
Log:
(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.

Modified:
    branches/1.4/main/dns.c

Modified: branches/1.4/main/dns.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/dns.c?view=diff&rev=81435&r1=81434&r2=81435
==============================================================================
--- branches/1.4/main/dns.c (original)
+++ branches/1.4/main/dns.c Tue Sep  4 08:10:56 2007
@@ -267,7 +267,7 @@
 			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;
 		}




More information about the asterisk-commits mailing list