mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
let's try allocating the proper amount of memory...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
dnsmgr.c
2
dnsmgr.c
@@ -74,7 +74,7 @@ struct ast_dnsmgr_entry *ast_dnsmgr_get(const char *name, struct in_addr *result
|
|||||||
if (!name || !result || ast_strlen_zero(name))
|
if (!name || !result || ast_strlen_zero(name))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
entry = calloc(1, sizeof(*result) + strlen(name));
|
entry = calloc(1, sizeof(*entry) + strlen(name));
|
||||||
if (!entry)
|
if (!entry)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user