aboutsummaryrefslogtreecommitdiffstats
path: root/main/dns.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-06 00:14:32 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-06 00:14:32 +0000
commitf9f33f16fbad3c7f228791cb1f4e38b4d73ced73 (patch)
tree629fd8245dca6f6351b5dcf9560420dfb221655e /main/dns.c
parentc7864bc14b10cc91805378e278f007019dfc7187 (diff)
Merged revisions 105840 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r105840 | tilghman | 2008-03-04 17:04:29 -0600 (Tue, 04 Mar 2008) | 2 lines Whitespace changes only ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@106306 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/dns.c')
-rw-r--r--main/dns.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/dns.c b/main/dns.c
index 34212fdf1..f6dc407dd 100644
--- a/main/dns.c
+++ b/main/dns.c
@@ -274,12 +274,10 @@ int ast_search_dns(void *context,
if ((res = dns_parse_answer(context, class, type, answer, res, callback)) < 0) {
ast_log(LOG_WARNING, "DNS Parse error for %s\n", dname);
ret = -1;
- }
- else if (res == 0) {
+ } else if (res == 0) {
ast_debug(1, "No matches found in DNS for %s\n", dname);
ret = 0;
- }
- else
+ } else
ret = 1;
}
#ifdef HAVE_RES_NINIT