[OpenSIPS-Devel] [OpenSIPS/opensips] e5ab62: Fix crash on building CANCEL requests.

Bogdan-Andrei Iancu bogdan at opensips.org
Thu May 7 12:30:45 CEST 2015


  Branch: refs/heads/1.8
  Home:   https://github.com/OpenSIPS/opensips
  Commit: e5ab624d564306b3a67b7396345b575cb124a4fb
      https://github.com/OpenSIPS/opensips/commit/e5ab624d564306b3a67b7396345b575cb124a4fb
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-05-07 (Thu, 07 May 2015)

  Changed paths:
    M modules/tm/t_cancel.c

  Log Message:
  -----------
  Fix crash on building CANCEL requests.

Avoid the race condition between building a local cancel and handling a negative reply (for the same branch, in different processes). The build_local mya use the temporary uac->reply and end up with a dnagling pointer. Anyhow, in CANCEL situation, you never have a stored reply in transaction (storing is done only during parallel forking for nagative branches - which are not to be cancelled anyhow).

(cherry picked from commit 156fba8d5eeedaa3bbb5cd89a525e1591a288123)




More information about the Devel mailing list