Fix a small logic error in ast_event_iterator_next. The previous logic allowed for...
authorMark Michelson <mmichelson@digium.com>
Wed, 13 Feb 2008 00:55:09 +0000 (00:55 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 13 Feb 2008 00:55:09 +0000 (00:55 +0000)
commit23fc97480e500c9310794c6e5c5ae7ba998f4e9c
treeb3e5abcf2cdf02621bdcbb670d254b6601005d18
parent69e6af44a5b423110dd77ec1b99228dc2932643b
Fix a small logic error in ast_event_iterator_next. The previous logic allowed for the iterator
to indicate there was more data than there really was, causing the iterator read beyond the end
of the event structure. This led to invalid memory reads and potential crashes.

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