Commit 00b069c8 authored by Pekka Pessi's avatar Pekka Pessi

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.

darcs-hash:20090212204502-db55f-7a22aac801f35049a358966b728460a1359f2786.gz
parent 4b597c0e
......@@ -136,7 +136,12 @@ static void init(void)
{
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment