pbx.c: fix confused match caller id that deleted exten still in hash
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 25 Oct 2013 20:51:13 +0000 (20:51 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 25 Oct 2013 20:51:13 +0000 (20:51 +0000)
commit7b42a6828a1f98862b673f9e1c2b9a5c105231db
treeae80b3cf106a6a7fcaae55314cce8e45d6314a5a
parentbb1568caa12dd10cbbe7ec84fcbdcfd0f3a2156c
pbx.c: fix confused match caller id that deleted exten still in hash

This fixes a bug where a zero length callerid match adjacent to a no
match callerid extension entry would be deleted together, which then
resulted in hashtable references to free'd memory.  A third state of
the matchcid value has been added to indicate match to any extension
which allows enforcing comparison of matchcid on/off without errors.

(closes issue AST-1235)
Reported by: Guenther Kelleter
Review: https://reviewboard.asterisk.org/r/2930/
........

Merged revisions 401959 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 401960 from http://svn.asterisk.org/svn/asterisk/branches/11
........

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

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