[asterisk-commits] rmudgett: branch 1.8 r323456 - /branches/1.8/main/event.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 14 19:50:25 CDT 2011


Author: rmudgett
Date: Tue Jun 14 19:50:20 2011
New Revision: 323456

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=323456
Log:
Add missing break in ast_event_get_cached().

Modified:
    branches/1.8/main/event.c

Modified: branches/1.8/main/event.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/event.c?view=diff&rev=323456&r1=323455&r2=323456
==============================================================================
--- branches/1.8/main/event.c (original)
+++ branches/1.8/main/event.c Tue Jun 14 19:50:20 2011
@@ -381,12 +381,12 @@
 	int res = 0;
 
 	AST_LIST_TRAVERSE(&check_ie_vals->ie_vals, event_ie_val, entry) {
-		if (event_ie_val->ie_type == sub_ie_val->ie_type) {
+		if (sub_ie_val->ie_type == event_ie_val->ie_type) {
 			break;
 		}
 	}
 	if (!event_ie_val) {
-		/* The did not find the event ie the subscriber cares about. */
+		/* We did not find the event ie the subscriber cares about. */
 		return 0;
 	}
 
@@ -1340,6 +1340,7 @@
 			void *data = va_arg(ap, void *);
 			size_t datalen = va_arg(ap, size_t);
 			ast_event_append_ie_raw(&cache_arg_event, ie_type, data, datalen);
+			break;
 		}
 		case AST_EVENT_IE_PLTYPE_EXISTS:
 			ast_log(LOG_WARNING, "PLTYPE_EXISTS not supported by this function\n");




More information about the asterisk-commits mailing list