]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_exten_state: PJSIPShowSubscriptionsInbound causes crash
authorKevin Harwell <kharwell@digium.com>
Thu, 13 Nov 2014 22:26:56 +0000 (22:26 +0000)
committerKevin Harwell <kharwell@digium.com>
Thu, 13 Nov 2014 22:26:56 +0000 (22:26 +0000)
commit49b7a1cbafdc3dc439277701c50c9d85fb48a595
tree1e485e0600de508cb891f7dfc02b3e6771d8e35a
parent74e706878b4528e7d6db26e129f2f0d7346dbf0b
res_pjsip_exten_state: PJSIPShowSubscriptionsInbound causes crash

When using a non-default sorcery wizard (in this instance realtime) for
outbound registrations and after adding in an appropriate call to
ast_sorcery_apply_config() (since it is missing) Asterisk will crash after
a stack overflow occurs due to the code infinitely recursing.  The fix entails
removing the outbound registration state dependency from the outbound
registration sorcery object and instead keeping an in memory container that
can be used to lookup the state when needed.

ASTERISK-24514
Reported by: Mark Michelson
Review: https://reviewboard.asterisk.org/r/4164/
........

Merged revisions 427814 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 427815 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_outbound_registration.c