mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +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))
|
||||
return NULL;
|
||||
|
||||
entry = calloc(1, sizeof(*result) + strlen(name));
|
||||
entry = calloc(1, sizeof(*entry) + strlen(name));
|
||||
if (!entry)
|
||||
return NULL;
|
||||
|
||||
|
Reference in New Issue
Block a user