From: Joshua Colp Date: Wed, 29 Aug 2007 16:07:35 +0000 (+0000) Subject: This concludes bringing trunk back to a working state. X-Git-Tag: 1.6.0-beta1~3^2~1585 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3b8cb670ea85c37d6a2cbd699501ec73a6ea428;p=thirdparty%2Fasterisk.git This concludes bringing trunk back to a working state. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81345 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/event.c b/main/event.c index 73858c885d..a905f63302 100644 --- a/main/event.c +++ b/main/event.c @@ -427,6 +427,7 @@ const void *ast_event_get_ie_raw(const struct ast_event *event, enum ast_event_i while ((((void *) ie) - ((void *) event)) < event_len) { if (ie->ie_type == ie_type) return ie->ie_payload; + ie = ((void *) ie) + sizeof(*ie) + ntohs(ie->ie_payload_len); } return NULL;