]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx.c: fix confused match caller id that deleted exten still in hash
authorScott Griepentrog <sgriepentrog@digium.com>
Fri, 25 Oct 2013 20:44:40 +0000 (20:44 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Fri, 25 Oct 2013 20:44:40 +0000 (20:44 +0000)
commit53b25ff6eb209a5173109aa41e02b23cf39ee05a
tree557d09d9c18599edbd4c634c16d0003a37715fa3
parentc2e28fae9cce3abb28bc0f8b09b00a4f046f83d5
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

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