aboutsummaryrefslogtreecommitdiffstats
path: root/enum.c
diff options
context:
space:
mode:
Diffstat (limited to 'enum.c')
-rwxr-xr-xenum.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index 48531dfe9..a0fa98083 100755
--- a/enum.c
+++ b/enum.c
@@ -32,6 +32,7 @@
#include <asterisk/dns.h>
#include <asterisk/channel.h>
#include <asterisk/config.h>
+#include <asterisk/utils.h>
#ifdef __APPLE__
#undef T_NAPTR
@@ -237,7 +238,7 @@ static int enum_callback(void *context, u_char *answer, int len, u_char *fullans
return -1;
}
- if (strlen(c->dst))
+ if (!ast_strlen_zero(c->dst))
return 1;
return 0;