Skip to content
Snippets Groups Projects
Commit dfe71e88 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

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
parent 2f39b2c5
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment