[asterisk-commits] file: branch 1.4 r85818 - /branches/1.4/main/threadstorage.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 16 09:19:40 CDT 2007


Author: file
Date: Tue Oct 16 09:19:39 2007
New Revision: 85818

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85818
Log:
Fix memory allocation issue in threadstorage.
(closes issue #10995)
Reported by: snuffy
Patches:
      new-patch.diff uploaded by snuffy (license 35)

Modified:
    branches/1.4/main/threadstorage.c

Modified: branches/1.4/main/threadstorage.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/threadstorage.c?view=diff&rev=85818&r1=85817&r2=85818
==============================================================================
--- branches/1.4/main/threadstorage.c (original)
+++ branches/1.4/main/threadstorage.c Tue Oct 16 09:19:39 2007
@@ -56,7 +56,7 @@
 {
 	struct tls_object *to;
 
-	if (!(to = ast_calloc(sizeof(*to), 1)))
+	if (!(to = ast_calloc(1, sizeof(*to))))
 		return;
 
 	to->key = key;




More information about the asterisk-commits mailing list