]> 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 22:59:42 +0000 (17:59 -0500)
commit49c06adc9d511a8fb4a791e14608035affaff7e4
tree92eb42cd469e4de8e6ca748ba20fec758b554f6f
parentcfbb6a381675dd8b99f7460a5ae30bd5ab65cf60
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