[OpenSIPS-Devel] [OpenSIPS/opensips] e0b237: Fix building Via Branch in stateless mode
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jul 15 11:20:13 CEST 2016
Branch: refs/heads/2.1
Home: https://github.com/OpenSIPS/opensips
Commit: e0b237b83a331fc9d4bdfea3111d3fc7e359fbf7
https://github.com/OpenSIPS/opensips/commit/e0b237b83a331fc9d4bdfea3111d3fc7e359fbf7
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2016-07-15 (Fri, 15 Jul 2016)
Changed paths:
M forward.c
Log Message:
-----------
Fix building Via Branch in stateless mode
Instead of copying the branch value from a previous statefull Via header (which may lead to overflow as OpenSIPS has a maximum value for the built branch), we generate a new branch value based on the previous Via branch - in this way, we have full controll over the length of the resulting Branch and we also inherit the uniqueness of the branch value (from the prev Via hdr).
Reported by Gupta, Rahul and Elliott, Ray
(cherry picked from commit 482e643469b351d12418ff54c96beee7b27dca94)
More information about the Devel
mailing list