[OpenSIPS-Devel] [OpenSIPS/opensips] 6457b8: Fix crash on building CANCEL requests.
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu May 7 12:30:54 CEST 2015
Branch: refs/heads/1.10
Home: https://github.com/OpenSIPS/opensips
Commit: 6457b809fde9d00e53ab89b6787f686e358c07c9
https://github.com/OpenSIPS/opensips/commit/6457b809fde9d00e53ab89b6787f686e358c07c9
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