Module: sip-router
Branch: master
Commit: 20646b530baa1a2807e52048a8d99d31d2171bb6
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=20646b5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Apr 23 13:02:49 2013 +0200
usrloc: re-init sruid struct for each child
- avoid overapping values for xmlrpc handling
---
modules/usrloc/ul_mod.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/usrloc/ul_mod.c b/modules/usrloc/ul_mod.c
index a9b0a09..e4e1246 100644
--- a/modules/usrloc/ul_mod.c
+++ b/modules/usrloc/ul_mod.c
@@ -395,6 +395,9 @@ static int child_init(int _rank)
dlist_t* ptr;
int i;
+ if(sruid_init(&_ul_sruid, '-', "ulcx", SRUID_INC)<0)
+ return -1;
+
if(_rank==PROC_MAIN && ul_timer_procs>0)
{
for(i=0; i<ul_timer_procs; i++)