Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sguil: fix crash when no Packet is in event.

A test to avoid ipv6 packet in sguil output was causing
a crash when the event was not containing a Packet.
  • Loading branch information...
commit 70517b92bb23287d646c804d8cae7c49acaa2060 1 parent 405761e
@regit regit authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/output-plugins/spo_sguil.c
View
2  src/output-plugins/spo_sguil.c
@@ -237,7 +237,7 @@ void Sguil(Packet *p, void *event, uint32_t event_type, void *arg)
return;
}
- if ( p->ip6h != NULL )
+ if ( (p != NULL) && (p->ip6h != NULL) )
{
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.