aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/dns.c2
1 files changed, 1 insertions, 1 deletions
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;
}