Files
asterisk/include/asterisk
George Joseph c4cf004f24 config: bug: Fix SEGV in ast_category_insert when matching category isn't found
If you call ast_category_insert with a match category that doesn't exist, the
list traverse runs out of 'next' categories and you get a SEGV.  This patch
adds check for the end-of-list condition and changes the signature to return
an int for success/failure indication instead of a void.

The only consumer of this function is manager and it was also changed to use
the return value.

Tested by: George Joseph
Review: https://reviewboard.asterisk.org/r/3993/
........

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


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@423277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-09-18 14:42:26 +00:00
..
2012-12-03 20:43:03 +00:00
2012-06-25 15:55:25 +00:00
2007-12-11 14:17:29 +00:00
2010-06-02 18:10:15 +00:00
2009-04-29 18:53:01 +00:00
2006-11-15 20:55:17 +00:00
2011-12-16 21:10:19 +00:00
2012-11-03 03:17:49 +00:00
2011-12-22 20:39:48 +00:00
2008-07-21 21:00:47 +00:00
2010-06-08 14:38:18 +00:00
2009-03-18 02:28:55 +00:00
2011-11-23 17:16:33 +00:00
2009-06-15 16:07:23 +00:00
2012-02-24 15:10:35 +00:00
2010-08-30 08:25:50 +00:00
2011-10-11 19:06:29 +00:00
2010-06-08 14:38:18 +00:00
2010-06-08 14:38:18 +00:00
2012-11-07 19:03:42 +00:00
2007-12-11 22:20:22 +00:00
2007-12-11 22:20:22 +00:00
2010-06-08 14:38:18 +00:00
2012-06-25 17:59:34 +00:00