]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Only check transaction on transaction state events. 96/2896/1
authorJoshua Colp <jcolp@digium.com>
Sun, 22 May 2016 16:03:20 +0000 (13:03 -0300)
committerJoshua Colp <jcolp@digium.com>
Sun, 22 May 2016 16:07:05 +0000 (13:07 -0300)
commit85d0272e76858a571d01bcf2ccaba871daa10e16
tree04d96db1be21b009816d1c93d9dc44c84e7d959c
parent1c02b19b79019c7438e162d4db83a5fbf6c46554
res_pjsip: Only check transaction on transaction state events.

The send request callback function currently assumes that it
will only ever be called on transaction state changes. This is
not always true. If our own timer callback occurs we will call
the callback with a timer event instead of a transaction state
change event. In this case the transaction on the event is
invalid and accessing it will result in a crash.

ASTERISK-26049 #close

Change-Id: I623211c8533eb73056b0250b4580b49ad4174dfc
res/res_pjsip.c