[Freeswitch-svn] [commit] r11956 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su m4
FreeSWITCH SVN
mikej at freeswitch.org
Thu Feb 12 13:21:30 PST 2009
Author: mikej
Date: Thu Feb 12 15:21:30 2009
New Revision: 11956
Log:
Thu Feb 12 14:45:02 CST 2009 Pekka Pessi <first.last at nokia.com>
* su_uniqueid: call initstate() with memory from heap
Ignore-this: af9e58551676e173844d0b77af0e287a
When libsofia-sip-ua.so gets unloaded, its data segment gets unloaded, but
random() still wants to use the memory.
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c
freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Thu Feb 12 15:21:30 2009
@@ -1 +1 @@
-Thu Feb 12 15:19:02 CST 2009
+Thu Feb 12 15:21:20 CST 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_uniqueid.c Thu Feb 12 15:21:30 2009
@@ -136,7 +136,12 @@
{
int i;
+#if HAVE_INITSTATE
+ /* Allow libsofia-sip-ua.so to unload. */
+ uint32_t *seed = calloc(32, sizeof *seed);
+#else
static uint32_t seed[32] = { 0 };
+#endif
su_time_t now;
initialized = 1;
Modified: freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4 (original)
+++ freeswitch/trunk/libs/sofia-sip/m4/sac-su2.m4 Thu Feb 12 15:21:30 2009
@@ -526,7 +526,7 @@
AC_FUNC_ALLOCA
-AC_CHECK_FUNCS([gettimeofday strerror random tcsetattr flock \
+AC_CHECK_FUNCS([gettimeofday strerror random initstate tcsetattr flock \
socketpair gethostname gethostbyname getipnodebyname \
poll epoll_create kqueue select if_nameindex \
signal alarm \
More information about the Freeswitch-svn
mailing list