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

Author: Abdelmuhaimen Seaudi <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2026-01-21T08:26:38+01:00

ims_registrar_scscf: fix a couple of domain unlocks in save.c

---

Modified: src/modules/ims_registrar_scscf/save.c

---

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

---

diff --git a/src/modules/ims_registrar_scscf/save.c 
b/src/modules/ims_registrar_scscf/save.c
index d768892749c..065dabda6b5 100644
--- a/src/modules/ims_registrar_scscf/save.c
+++ b/src/modules/ims_registrar_scscf/save.c
@@ -1009,7 +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);
+                                                               
ul.unlock_udomain(_d, &pi->public_identity);
                                                                return -1;
                                                        }
                                                        
if(!ue_unsubscribe_on_dereg) {
@@ -1034,7 +1034,7 @@ static int update_contacts_sar_user_deregistration(struct 
sip_msg *msg,
                                                                LM_ERR("Error 
trying to determine if this is a "
                                                                           "sos 
contact <%.*s>\n",
                                                                                
STR_FMT(&chi->uri));
-                                                               
ul.unlock_udomain(_d, public_identity);
+                                                               
ul.unlock_udomain(_d, &pi->public_identity);
                                                                return -1;
                                                        }
                                                        
calc_contact_expires(chi, expires_hdr, sos);

_______________________________________________
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