[sr-dev] [kamailio/kamailio] dmq_usrloc: fix deadlock (#911)

Julien Chavanton notifications at github.com
Wed Jan 4 16:42:38 CET 2017


jchavanton commented on this pull request.



> @@ -72,6 +70,7 @@ static int add_contact(str aor, ucontact_info_t* ci)
 		// Search by ruid, if possible
 		res = dmq_ul.get_urecord_by_ruid(_d, dmq_ul.get_aorhash(&aor), &ci->ruid, &r, &c);

`get_urecord_by_ruid` was also acquiring the domain lock, this is why we must do `lock_udomain` only after it returns

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/911#pullrequestreview-15134761
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170104/a670d2fc/attachment.html>


More information about the sr-dev mailing list