]> 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)
committerGerrit <noreply@gerrit.asterisk.org>
Thu, 5 Sep 2019 10:25:19 +0000 (05:25 -0500)
commit9d4f1e8ebe5dc1152c59aee60955fc29ae3b3191
tree2c58fdfd7bab83a08253cda162be43f8df3dbf4c
parent16ae4cd2db06c4a6341a2c97dd5172a99e9fb6ba
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