Group :: Networking/Other
RPM: barnyard2
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: barnyard2-1.13-alt-sguild-padding.patch
Download
Download
commit ce3c0228369ee2426e8f8c0cfd2edad77c8a3cf6
Author: firnsy <firnsy@gmail.com>
Date: Fri Jan 23 06:24:00 2015 +1100
fixed: incorrect padding in sguild for events without packets.
diff --git a/src/output-plugins/spo_sguil.c b/src/output-plugins/spo_sguil.c
index 6fa8f65..8f774a5 100644
--- a/src/output-plugins/spo_sguil.c
+++ b/src/output-plugins/spo_sguil.c
@@ -417,13 +417,13 @@ void Sguil(Packet *p, void *event, uint32_t event_type, void *arg)
else
{
/* ack! an event without a packet. Append IP data from event struct and append
- 26 fillers */
+ 27 fillers */
if ( (event_type == UNIFIED2_IDS_EVENT_VLAN)||
(event_type == UNIFIED2_IDS_EVENT_MPLS) ||
(event_type == UNIFIED2_IDS_EVENT_VLAN)){
SguilAppendIPHdrDataEVT(&list, event);
int i;
- for(i = 0; i < 26; ++i)
+ for(i = 0; i < 27; ++i)
Tcl_DStringAppendElement(&list, "");
} else {
/* ack! an event without a packet. and no IP Data in eventAppend 32 fillers */