Skip to content
Browse files

Fix for issue 26

  • Loading branch information...
1 parent 0fa79ef commit 40a6293e1fc6efbd6e98c2973784f1f82a68d75e @binf binf committed May 10, 2012
Showing with 10 additions and 9 deletions.
  1. +10 −9 src/plugbase.c
View
19 src/plugbase.c
@@ -569,23 +569,24 @@ void CallOutputPlugins(OutputType out_type, Packet *packet, void *event, uint32_
}
else
{
- switch(out_type)
+ //All those sub "Log" type will go away in the future..
+ //Iterate Log and Alert.
+ idx = LogList;
+
+ while (idx != NULL)
{
- case OUTPUT_TYPE__ALERT:
- idx = AlertList;
- break;
- case OUTPUT_TYPE__LOG:
- idx = LogList;
- break;
- default:
- break;
+ idx->func(packet, event, event_type, idx->arg);
+ idx = idx->next;
}
+
+ idx = AlertList;
while (idx != NULL)
{
idx->func(packet, event, event_type, idx->arg);
idx = idx->next;
}
+
}
}

0 comments on commit 40a6293

Please sign in to comment.
Something went wrong with that request. Please try again.