Skip to content
Browse files

Fix potential crash on null pointer deference in sguil output module.

  • Loading branch information...
1 parent 40a6293 commit eb3b1b9aea280e3b592237cba4d60bf8aa3cdea1 @binf binf committed
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/output-plugins/spo_sguil.c
View
9 src/output-plugins/spo_sguil.c
@@ -237,9 +237,14 @@ void Sguil(Packet *p, void *event, uint32_t event_type, void *arg)
return;
}
- if ( (p != NULL) && (p->ip6h != NULL) )
+ if(p != NULL)
{
- return;
+ if((p->ip6h != NULL)
+ {
+ LogMessage("[%s] Received a IPv6 Packets, ignoring \n",
+ __FUNCTION__);
+ return;
+ }
}
data = (SpoSguilData *)arg;

0 comments on commit eb3b1b9

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