mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +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
srv.c
3
srv.c
@@ -27,6 +27,7 @@
|
||||
#include <asterisk/srv.h>
|
||||
#include <asterisk/dns.h>
|
||||
#include <asterisk/options.h>
|
||||
#include <asterisk/utils.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#undef T_SRV
|
||||
@@ -84,7 +85,7 @@ static int srv_callback(void *context, u_char *answer, int len, u_char *fullansw
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (strlen(c->host))
|
||||
if (!ast_strlen_zero(c->host))
|
||||
return 1;
|
||||
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user