]> git.ipfire.org Git - thirdparty/asterisk.git/commit
AST-2019-004 - res_pjsip_t38.c: Add NULL checks before using session media
authorKevin Harwell <kharwell@digium.com>
Tue, 20 Aug 2019 20:05:45 +0000 (15:05 -0500)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 5 Sep 2019 10:43:55 +0000 (05:43 -0500)
commitb49f09a2929ff77e0fc08ef02238b5bc917aab08
tree9912a803e4b0b7829c4151ad778945cccb666902
parentc2d9780d3d91fb44804df0db829712cff0340e44
AST-2019-004 - res_pjsip_t38.c: Add NULL checks before using session media

After receiving a 200 OK with a declined stream in response to a T.38
initiated re-invite Asterisk would crash when attempting to dereference
a NULL session media object.

This patch checks to make sure the session media object is not NULL before
attempting to use it.

ASTERISK-28495
patches:
  ast-2019-004.patch submitted by Alexei Gradinari (license 5691)

Change-Id: I168f45f4da29cfe739acf87e597baa2aae7aa572
res/res_pjsip_t38.c