mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
More strlen_zero checks (bug #1549)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2887 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
3
enum.c
3
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;
|
||||
|
Reference in New Issue
Block a user