]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_t38.c: Fix crash if already saw a final T.38 reINVITE response.
authorRichard Mudgett <rmudgett@digium.com>
Sat, 11 Aug 2018 00:28:45 +0000 (19:28 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 17 Aug 2018 23:56:12 +0000 (18:56 -0500)
commit236826a111bf565ab2ecff90ea8ea4eb3c8cefa4
treed676849c3d5d7799f8200b60df93fd6ce2255996
parent7d8e2389d6645071324f7459039733a2d816b6d1
res_pjsip_t38.c: Fix crash if already saw a final T.38 reINVITE response.

We were still getting crashes after the first fix.  Somehow we receive a
non-2xx final response before we get a 200 final response.  With the
failure response we had already cleaned up and destroyed some data
structures.  When the unexpected 200 response comes in we crash.

* Add protection code to prevent processing another final T.38 reINVITE
response.

ASTERISK-27944

Change-Id: I8b5baba8d07fe4d63f0d7d05d3eb9a3d27d40a74
res/res_pjsip_t38.c