]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session.c: Check for port of zero on incoming SDP.
authorBen Ford <bford@digium.com>
Fri, 8 Nov 2019 19:21:15 +0000 (13:21 -0600)
committerBenjamin Keith Ford <bford@digium.com>
Thu, 21 Nov 2019 20:34:48 +0000 (15:34 -0500)
commitcde0cd229706aa8509f995765578fbfdbe13015d
tree676140fa51d66316b67174adb8b0ada5535cc14c
parentfb53d3a79072ed172de6a0b88b801fdf9131d079
res_pjsip_session.c: Check for port of zero on incoming SDP.

If a re-invite comes in initiating T.38, but there is no c line in the
SDP and the port is also 0, a crash can occur. A check is now done on
the port to see if the steam is already declined, preventing the crash.
The logic was moved to res_pjsip_session.c because it is handled in a
similar manner in later versions of Asterisk.

ASTERISK-28612
Reported by: Salah Ahmed

Change-Id: Ifc4a0d05b32c7f2156e77fc8435a6ecaa6abada0
(cherry picked from commit c257794330db49f4079a7108d51da60696269b36)
res/res_pjsip_session.c