@miconda @henningw
Indeed the patch seems to resolve the problem. The issue seems to be happening
due to the line here.
https://github.com/kamailio/kamailio/blob/51dcab019a42e5b1f3b81247ca71ffcaf46180de/src/modules/nathelper/nathelper.c#L1180-L1184
We use the `rest=start;` to search for the parameters of `alias`, but in the
while above `rest` and `rest_len` are changed for `mode=1`. Specifically, the
problem is in `rest_len` in 1184 which does not represent the length of `start`
anymore , but still used.
Removing the two lines as suggested, fixes the problem since the search is
still done correctly.
Also, I believe the `+4` is not needed anymore.
https://github.com/kamailio/kamailio/blob/51dcab019a42e5b1f3b81247ca71ffcaf46180de/src/modules/nathelper/nathelper.c#L1156-L1156
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3863#issuecomment-2145347550
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3863/[email protected]>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]