diff --git a/src/decode-pppoe.c b/src/decode-pppoe.c index 073c2c9dda..a0cafeb009 100644 --- a/src/decode-pppoe.c +++ b/src/decode-pppoe.c @@ -277,6 +277,10 @@ static int DecodePPPOEtest03 (void) { ThreadVars tv; DecodeThreadVars dtv; + memset(&tv, 0, sizeof(ThreadVars)); + memset(&p, 0, sizeof(Packet)); + memset(&dtv, 0, sizeof(DecodeThreadVars)); + DecodePPPOEDiscovery(&tv, &dtv, &p, raw_pppoe, sizeof(raw_pppoe), NULL); return 0; // TODO @@ -298,6 +302,10 @@ static int DecodePPPOEtest04 (void) { ThreadVars tv; DecodeThreadVars dtv; + memset(&tv, 0, sizeof(ThreadVars)); + memset(&p, 0, sizeof(Packet)); + memset(&dtv, 0, sizeof(DecodeThreadVars)); + DecodePPPOEDiscovery(&tv, &dtv, &p, raw_pppoe, sizeof(raw_pppoe), NULL); if(DECODER_ISSET_EVENT(&p,PPPOE_WRONG_CODE)) { @@ -325,6 +333,10 @@ static int DecodePPPOEtest05 (void) { ThreadVars tv; DecodeThreadVars dtv; + memset(&tv, 0, sizeof(ThreadVars)); + memset(&p, 0, sizeof(Packet)); + memset(&dtv, 0, sizeof(DecodeThreadVars)); + DecodePPPOEDiscovery(&tv, &dtv, &p, raw_pppoe, sizeof(raw_pppoe), NULL); if(DECODER_ISSET_EVENT(&p,PPPOE_MALFORMED_TAGS)) {