Fix a clang issue 'Assigned value is garbage or undefined' in the threshold code in case a packet was neither ipv4 or ipv6.

remotes/origin/master-1.1.x
Victor Julien 14 years ago
parent 1112e103a8
commit b600c9ac09

@ -270,6 +270,9 @@ int PacketAlertThreshold(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx
ste.ipv = 4;
else if (PKT_IS_IPV6(p))
ste.ipv = 6;
else {
SCReturnInt(0);
}
ste.sid = s->id;
ste.gid = s->gid;

Loading…
Cancel
Save