[OpenSIPS-Devel] [OpenSIPS/opensips] a20e6f: tm: Properly re-init branches after t_relay("0x02"...

Liviu Chircu liviu at opensips.org
Fri Nov 16 11:40:37 EST 2018


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: a20e6f49af2b44409cbc8ac85d8a44983945dd01
      https://github.com/OpenSIPS/opensips/commit/a20e6f49af2b44409cbc8ac85d8a44983945dd01
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-11-16 (Fri, 16 Nov 2018)

  Changed paths:
    M modules/tm/h_table.c
    M modules/tm/t_funcs.h
    M modules/tm/t_fwd.c

  Log Message:
  -----------
  tm: Properly re-init branches after t_relay("0x02") fails

A t_relay("0x02") failure would do the required t->uac[] array element
buffer cleanups (good!) but then have these elements completely zeroized
(bad!).  These entries must additionally be initialized afterwards,
similarly to how init_branches() leaves them after a new transaction is
built.

Many thanks to Debasis Das from Twilio for reporting this bug.

(cherry picked from commit 853755f11d372c29866bed948796320314540084)



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Devel mailing list