]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip.c: Fix crash from corrupt saved SUBSCRIBE message. 66/1066/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 19:18:03 +0000 (14:18 -0500)
commit739fca6084f2641d447956e59d56d1a851956196
treebb0d00cffc5a332fc10513c4617ff14380e19ef0
parenteae9adcc1fe0246f42e5534abdc99466f9125c04
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