]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip.c: Fix crash from corrupt saved SUBSCRIBE message. 63/1063/1
authorRichard Mudgett <rmudgett@digium.com>
Mon, 10 Aug 2015 23:23:02 +0000 (18:23 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 11 Aug 2015 18:49:25 +0000 (13:49 -0500)
commitc126afe18f9073f3ee74e45f574da421131b9fa2
tree1991f4937dacffb5f118940ad0b296720a359447
parent47d9ff1741118d5594c8500dfc5b048b5e04d8a0
res_pjsip.c: Fix crash from corrupt saved SUBSCRIBE message.

If the saved SUBSCRIBE message is not parseable for whatever reason then
Asterisk could crash when libpjsip tries to parse the message and adds an
error message to the parse error list.

* Made ast_sip_create_rdata() initialize the parse error rdata list.  The
list is checked after parsing to see that it remains empty for the
function to return successful.

ASTERISK-25306
Reported by Mark Michelson

Change-Id: Ie0677f69f707503b1a37df18723bd59418085256
res/res_pjsip.c