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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-12T13:24:00+01:00

usrloc: small code update for clarity

---

Modified: src/modules/usrloc/udomain.c

---

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

---

diff --git a/src/modules/usrloc/udomain.c b/src/modules/usrloc/udomain.c
index 9fbef38bdfc..7f2347560e9 100644
--- a/src/modules/usrloc/udomain.c
+++ b/src/modules/usrloc/udomain.c
@@ -1392,10 +1392,13 @@ int get_urecord(udomain_t *_d, str *_aor, struct 
urecord **_r)
                                        && !memcmp(r->aor.s, _aor->s, 
_aor->len)) {
                                if(ul_handle_lost_tcp) {
                                        for(ptr = r->contacts; ptr; ptr = 
ptr->next) {
-                                               if(ptr->expires == 
UL_EXPIRED_TIME)
+                                               if(ptr->expires == 
UL_EXPIRED_TIME) {
                                                        continue;
-                                               if(is_valid_tcpconn(ptr) && 
!is_tcp_alive(ptr))
+                                               }
+                                               if(is_valid_tcpconn(ptr) && 
!is_tcp_alive(ptr)) {
                                                        ptr->expires = 
UL_EXPIRED_TIME;
+                                                       continue;
+                                               }
                                        }
                                }
                                *_r = r;

_______________________________________________
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