]> 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:26:08 +0000 (05:26 -0500)
commit18f5f5fc99a8106c1856d13aeeeeafa2b13ef033
treee011b6b5d2b6b1521b650b51698ac1f034f105b5
parentd3cfab159cbfc9c71916dfe9bd38581c57eb1915
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