[OpenSIPS-Devel] [OpenSIPS/opensips] f522b0: mid_registrar: Fix mem corruption on SIP retransmi...
Liviu Chircu
liviu at opensips.org
Wed Aug 30 10:44:52 EDT 2017
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: f522b0ef089e12375b6dc184f5643c11312d1ebc
https://github.com/OpenSIPS/opensips/commit/f522b0ef089e12375b6dc184f5643c11312d1ebc
Author: Liviu Chircu <liviu at opensips.org>
Date: 2017-08-30 (Wed, 30 Aug 2017)
Changed paths:
M modules/mid_registrar/save.c
Log Message:
-----------
mid_registrar: Fix mem corruption on SIP retransmissions
The TMCB_RESPONSE_IN function gets called once per each retransmission,
and we want to avoid this in the mid_registrar code. Since the callbacks
themselves are mutually exclusive, we can get away with zeroizing our own
parameter after the first run.
A better way of fixing this would be to extend the tm callback API to
include SIP retransmission preferences.
More information about the Devel
mailing list