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

Author: Xenofon Karamanos <22965395+xkara...@users.noreply.github.com>
Committer: Xenofon Karamanos <22965395+xkara...@users.noreply.github.com>
Date: 2024-06-04T13:38:17+03:00

nathelper: remove magic constant

---

Modified: src/modules/nathelper/nathelper.c

---

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

---

diff --git a/src/modules/nathelper/nathelper.c 
b/src/modules/nathelper/nathelper.c
index 467c88a6a25..6e6d44ad7ed 100644
--- a/src/modules/nathelper/nathelper.c
+++ b/src/modules/nathelper/nathelper.c
@@ -1153,7 +1153,7 @@ static int ki_handle_ruri_alias_mode(struct sip_msg *msg, 
int mode)
        }
        start = NULL;
        /* locate last alias parameter */
-       while(rest_len > _ksr_contact_alias.len + 4) {
+       while(rest_len > _ksr_contact_alias.len) {
                if(strncmp(rest, _ksr_contact_alias.s, _ksr_contact_alias.len) 
== 0) {
                        start = rest;
                        if(mode == 0) {

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to