[OpenSIPS-Devel] [OpenSIPS/opensips] 497eaa: Fix building Via Branch in stateless mode

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jul 15 11:20:33 CEST 2016


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 497eaa180ae3bcc162c76effb70e4d01dba89ad4
      https://github.com/OpenSIPS/opensips/commit/497eaa180ae3bcc162c76effb70e4d01dba89ad4
  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