Prevent seg fault in off nominal path when registered option fails to validate
authorMatthew Jordan <mjordan@digium.com>
Fri, 23 Aug 2013 18:02:36 +0000 (18:02 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 23 Aug 2013 18:02:36 +0000 (18:02 +0000)
commit32a0567c461ee426817e476724e206d603fe1e70
treea31834a79113c3be8c89eb73594c1d07ba810279
parent882ba864345a5600cf3d49560ab95fd784e445e8
Prevent seg fault in off nominal path when registered option fails to validate

If an option is registered to a type and it is the last known type in the list
of registered types, and the option fails to register, an overrun of the types
array can occur due to the index variable having been already incremented.

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