mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Merged revisions 85818 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r85818 | file | 2007-10-16 11:19:39 -0300 (Tue, 16 Oct 2007) | 6 lines Fix memory allocation issue in threadstorage. (closes issue #10995) Reported by: snuffy Patches: new-patch.diff uploaded by snuffy (license 35) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85819 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -56,7 +56,7 @@ void __ast_threadstorage_object_add(void *key, size_t len, const char *file, con
|
||||
{
|
||||
struct tls_object *to;
|
||||
|
||||
if (!(to = ast_calloc(sizeof(*to), 1)))
|
||||
if (!(to = ast_calloc(1, sizeof(*to))))
|
||||
return;
|
||||
|
||||
to->key = key;
|
||||
|
Reference in New Issue
Block a user