Module: kamailio
Branch: 6.0
Commit: 8529975a9e2fc9f61dcde50955db02c78c7157b4
URL: 
https://github.com/kamailio/kamailio/commit/8529975a9e2fc9f61dcde50955db02c78c7157b4

Author: Victor Seva <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2026-01-15T09:55:12+01:00

ims_registrar_scscf: fix missing unlocks at update_contacts()

issue introduced at 75904895577d0329ba0d30d10e645b8769451e51

fix #4553

(cherry picked from commit dacfbbf4d919c3004827bc7a0107c37a9bf77655)

---

Modified: src/modules/ims_registrar_scscf/save.c

---

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

---

diff --git a/src/modules/ims_registrar_scscf/save.c 
b/src/modules/ims_registrar_scscf/save.c
index 0836740ce47..250274087c0 100644
--- a/src/modules/ims_registrar_scscf/save.c
+++ b/src/modules/ims_registrar_scscf/save.c
@@ -954,6 +954,7 @@ int update_contacts(struct sip_msg *msg, udomain_t *_d, str 
*public_identity,
                                                                != 0) {
                                                        LM_DBG("Contact does 
not exist <%.*s>\n",
                                                                        
chi->uri.len, chi->uri.s);
+                                                       ul.unlock_udomain(_d, 
&pi->public_identity);
                                                        goto error;
                                                }
                                                event_reg(0, impu_rec, ucontact,
@@ -1091,6 +1092,7 @@ int update_contacts(struct sip_msg *msg, udomain_t *_d, 
str *public_identity,
                                                                != 0) {
                                                        LM_DBG("Contact does 
not exist <%.*s>\n",
                                                                        
chi->uri.len, chi->uri.s);
+                                                       ul.unlock_udomain(_d, 
&pi->public_identity);
                                                        goto error;
                                                }
                                                event_reg(0, impu_rec, ucontact,
@@ -1229,6 +1231,8 @@ int update_contacts(struct sip_msg *msg, udomain_t *_d, 
str *public_identity,
                                                                                
LM_DBG("Contact does not exist "
                                                                                
           "<%.*s>\n",
                                                                                
                chi->uri.len, chi->uri.s);
+                                                                               
ul.unlock_udomain(
+                                                                               
                _d, &pi->public_identity);
                                                                                
goto error;
                                                                        }
                                                                        
notify_subscribers(tmp_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