]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_t38: Make t38_reinvite_response_cb tolerant of NULL channel
authorGeorge Joseph <gjoseph@digium.com>
Tue, 5 Sep 2017 10:23:04 +0000 (04:23 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 5 Sep 2017 10:55:19 +0000 (05:55 -0500)
commit87e13e29758e2d315a5de585c2df7ef19a9925ee
tree495748c17b00aab3da5a489607c6b29c8cfa3354
parenta48010e1e0812ba1007e91f007fed7079512747e
res_pjsip_t38:  Make t38_reinvite_response_cb tolerant of NULL channel

t38_reinvite_response_cb can get called by res_pjsip_session's
session_inv_on_tsx_state_changed in situations where session->channel
is NULL.  If it is, the ast_log warning segfaults because it tries
to get the channel name from a NULL channel.

* Check session->channel and print "unknown channel" when it's NULL.

ASTERISK-27236
Reported by: Ross Beer

Change-Id: I4326e288d36327f6c79ab52226d54905cdc87dc7
res/res_pjsip_t38.c