diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-09 21:13:30 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-06-09 21:13:30 +0000 |
commit | 912a2d74329263cf3673177d20e3ffdcfc5fd420 (patch) | |
tree | 73b5e68cc7e8e918c0abddd427d57a6d5c8808aa /include/asterisk | |
parent | 68dadecc723c6fb8f8ab922c4274c9b2e03b25f6 (diff) |
Merged revisions 269417 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r269417 | russell | 2010-06-09 16:11:43 -0500 (Wed, 09 Jun 2010) | 6 lines
Resolve an invalid memory read on an event.
Valgrind pointed out that attempting to get an IE value from an event that has
no IEs produces an invalid memory read past the end of the event. Thanks to
mmichelson for pointing the problem out to me and then testing the fix.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@269418 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/event.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/asterisk/event.h b/include/asterisk/event.h index e7d0f7e2f..78926c74e 100644 --- a/include/asterisk/event.h +++ b/include/asterisk/event.h @@ -590,9 +590,10 @@ size_t ast_event_get_size(const struct ast_event *event); * \param iterator The iterator instance to initialize * \param event The event that will be iterated through * - * \return Nothing + * \retval 0 Success, there are IEs available to iterate + * \retval -1 Failure, there are no IEs in the event to iterate */ -void ast_event_iterator_init(struct ast_event_iterator *iterator, const struct ast_event *event); +int ast_event_iterator_init(struct ast_event_iterator *iterator, const struct ast_event *event); /*! * \brief Move iterator instance to next IE |