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

Julien Chavanton notifications at github.com
Thu Jan 5 15:42:42 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);
 		if (res == 0) {
+			dmq_ul.lock_udomain(_d, &aor);

You are right, if the record is found the lock is kept.

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170105/66de512f/attachment-0001.html>


More information about the sr-dev mailing list