(closes issue #12469)
authorSteve Murphy <murf@digium.com>
Tue, 22 Apr 2008 21:57:57 +0000 (21:57 +0000)
committerSteve Murphy <murf@digium.com>
Tue, 22 Apr 2008 21:57:57 +0000 (21:57 +0000)
commit76155d60ce52b4a8b039286df3d5ea30f05bc0a3
treeba2ccb39353365370ba11bf3d47b949e94c978c6
parent4a0d1164cb0909b4740c6d999d7c6bc0932b9eaa
(closes issue #12469)
Reported by: triccyx

I had a bit a problem reproducing this in my setup (trying not to disturb my other stuff)
but finally, I got it. The problem appears to be that the extension is being added in
replace mode, which kinda assumes that the pattern trie has been formed, when in fact,
in this case, it was not. The checks being done are not nec. when the tree is not yet
formed, as changes like this will be summarized when the trie is formed in the future.

I tested the fix, and the crash no longer happens. Feel free to open the bug again if
this fix doesn't cure the problem.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114553 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c