Module: kamailio
Branch: master
Commit: dacfbbf4d919c3004827bc7a0107c37a9bf77655
URL: 
https://github.com/kamailio/kamailio/commit/dacfbbf4d919c3004827bc7a0107c37a9bf77655

Author: Abdelmuhaimen Seaudi <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2026-01-15T09:44:41+01:00

ims_registrar_scscf: fix missing unlocks at update_contacts()

issue introduced at 75904895577d0329ba0d30d10e645b8769451e51

fix #4553

---

Modified: src/modules/ims_registrar_scscf/save.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/dacfbbf4d919c3004827bc7a0107c37a9bf77655.diff
Patch: 
https://github.com/kamailio/kamailio/commit/dacfbbf4d919c3004827bc7a0107c37a9bf77655.patch

---

diff --git a/src/modules/ims_registrar_scscf/save.c 
b/src/modules/ims_registrar_scscf/save.c
index c6eca2a9387..d768892749c 100644
--- a/src/modules/ims_registrar_scscf/save.c
+++ b/src/modules/ims_registrar_scscf/save.c
@@ -876,6 +876,7 @@ static int update_contacts_sar_registration(struct sip_msg 
*msg, udomain_t *_d,
                                                != 0) {
                                        LM_DBG("Contact does not exist 
<%.*s>\n",
                                                        STR_FMT(&chi->uri));
+                                       ul.lock_udomain(_d, public_identity);
                                        return -1;
                                }
                                event_reg(0, impu_rec, ucontact,
@@ -1008,6 +1009,7 @@ static int update_contacts_sar_user_deregistration(struct 
sip_msg *msg,
                                                                        != 0) {
                                                                LM_DBG("Contact 
does not exist <%.*s>\n",
                                                                                
STR_FMT(&chi->uri));
+                                                               
ul.lock_udomain(_d, public_identity);
                                                                return -1;
                                                        }
                                                        
if(!ue_unsubscribe_on_dereg) {
@@ -1226,6 +1228,7 @@ static int update_contacts_sar_re_registration(struct 
sip_msg *msg,
                                                != 0) {
                                        LM_DBG("Contact does not exist 
<%.*s>\n",
                                                        STR_FMT(&chi->uri));
+                                       ul.lock_udomain(_d, public_identity);
                                        return -1;
                                }
                                event_reg(0, impu_rec, ucontact,

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to