summaryrefslogtreecommitdiff
path: root/configs/samples/chan_dahdi.conf.sample
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-04-30 08:04:34 -0300
committerJoshua Colp <jcolp@digium.com>2015-04-30 08:27:21 -0300
commite332c7ed5ebb24e13981d7471f0dd54f3bdd83e6 (patch)
tree37274471e0d72dc9f42334f270d4923807ba129e /configs/samples/chan_dahdi.conf.sample
parent37a193da1861193198692c8acc52ac43a5ae5bc1 (diff)
res_pjsip_outbound_registration: Fix double unref on error return.
When the PJSIP pjsip_regc_send function is invoked and an error status returned the caller currently decrements the reference count of the client state that it just incremented, assuming the registration callback would not have been invoked. In practice this is not correct. If the failure happens after the transaction has been set up the callback will still be invoked. This will cause the reference count to be incorrectly decremented twice, once by the registration callback and second by the caller of pjsip_regc_send. This change makes it so that whether the callback is invoked or not is known by the caller of pjsip_regc_send. Depending on this it can know whether it is responsible for decrementing the reference count of the client state or not. ASTERISK-25037 #close Reported by: Joshua Colp Change-Id: I749dc12f3a22115c49c5d7d95ff42a5fa45319de
Diffstat (limited to 'configs/samples/chan_dahdi.conf.sample')
0 files changed, 0 insertions, 0 deletions