Module: kamailio
Branch: master
Commit: dfcba5fbcc5046a12babd3c6e93555f89ffa9cbe
URL:
https://github.com/kamailio/kamailio/commit/dfcba5fbcc5046a12babd3c6e93555f…
Author: Vitaliy Aleksandrov <vitalik.voip(a)gmail.com>
Committer: Vitaliy Aleksandrov <vitalik.voip(a)gmail.com>
Date: 2017-10-23T19:15:44+03:00
usrloc: fix usrloc slot lock in ul.dump rpc procedure
- unlock usrloc slot when "ul.dump brief" fails during aor struct creation
---
Modified: src/modules/usrloc/ul_rpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/dfcba5fbcc5046a12babd3c6e93555f…
Patch:
https://github.com/kamailio/kamailio/commit/dfcba5fbcc5046a12babd3c6e93555f…
---
diff --git a/src/modules/usrloc/ul_rpc.c b/src/modules/usrloc/ul_rpc.c
index c7d48cde8f..36d2ed7d91 100644
--- a/src/modules/usrloc/ul_rpc.c
+++ b/src/modules/usrloc/ul_rpc.c
@@ -254,6 +254,7 @@ static void ul_rpc_dump(rpc_t* rpc, void* ctx)
if(rpc->struct_add(ah, "S",
"AoR", &r->aor)<0)
{
+ unlock_ulslot( dom, i);
rpc->fault(ctx, 500, "Internal error creating aor struct");
return;
}