From f76a740fe2b12e3e4772238dc7829a5f61fd72ae Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 22 Oct 2009 13:17:47 +0200 Subject: [PATCH] Small layout fix. --- src/detect.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/detect.c b/src/detect.c index 253ea63abc..397abf3450 100644 --- a/src/detect.c +++ b/src/detect.c @@ -279,10 +279,11 @@ int PacketAlertAppend(Packet *p, uint32_t gid, uint32_t sid, uint8_t rev, uint8_ { /* XXX overflow check? */ - if(gid > 1) - p->alerts.alerts[p->alerts.cnt].gid = gid; + if (gid > 1) + p->alerts.alerts[p->alerts.cnt].gid = gid; else - p->alerts.alerts[p->alerts.cnt].gid = 1; + p->alerts.alerts[p->alerts.cnt].gid = 1; + p->alerts.alerts[p->alerts.cnt].sid = sid; p->alerts.alerts[p->alerts.cnt].rev = rev; p->alerts.alerts[p->alerts.cnt].prio = prio;