Module: kamailio
Branch: master
Commit: fd30ccf4473d43d98cfb0d896c47d4824c089bce
URL:
https://github.com/kamailio/kamailio/commit/fd30ccf4473d43d98cfb0d896c47d48…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-09-19T08:11:36+02:00
usrloc: use sruid_next_safe()
---
Modified: src/modules/usrloc/ul_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/fd30ccf4473d43d98cfb0d896c47d48…
Patch:
https://github.com/kamailio/kamailio/commit/fd30ccf4473d43d98cfb0d896c47d48…
---
diff --git a/src/modules/usrloc/ul_rpc.c b/src/modules/usrloc/ul_rpc.c
index 39d8aa2776..53031799ac 100644
--- a/src/modules/usrloc/ul_rpc.c
+++ b/src/modules/usrloc/ul_rpc.c
@@ -660,7 +660,7 @@ static void ul_rpc_add(rpc_t* rpc, void* ctx)
return;
}
- if(sruid_next(&_ul_sruid)<0)
+ if(sruid_next_safe(&_ul_sruid)<0)
{
rpc->fault(ctx, 500, "Can't obtain next uid");
return;