]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix bug in app layer event handling causing http event rules to fail loading.
authorVictor Julien <victor@inliniac.net>
Mon, 19 Mar 2012 12:46:47 +0000 (13:46 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 19 Mar 2012 12:46:47 +0000 (13:46 +0100)
src/decode-events.c

index ac1b9729996c781a8fccde55b85f78ef4db38610..c0c649984cadc28c4f3b1f5553e5208e80c7e338 100644 (file)
@@ -73,9 +73,9 @@ int AppLayerDecoderEventsModuleGetEventId(uint16_t alproto,
     AppLayerDecoderEventsModule *dvm = decoder_events_module;
 
     while (dvm != NULL) {
-        if (dvm->alproto != alproto)
-            dvm = dvm->next;
-        break;
+        if (dvm->alproto == alproto)
+            break;
+        dvm = dvm->next;
     }
     if (dvm == NULL) {
         SCLogError(SC_ERR_FATAL, "decoder event module not found for "