diff --git a/src/decode.c b/src/decode.c index 3fffed4..3630e3f 100644 --- a/src/decode.c +++ b/src/decode.c @@ -579,7 +579,7 @@ void UpdateDecodeRulesArray(uint32_t sid, int value, int all_rules) decodeRulesArray[sid] = ( value != 0 ); } -// this must be called iff the layer is successfully decoded because, when +// this must be called if the layer is successfully decoded because, when // enabled, the normalizer assumes that the encoding is structurally sound static inline void PushLayer(PROTO_ID type, Packet* p, const uint8_t* hdr, uint32_t len) { @@ -753,7 +753,7 @@ void DecodeEthPkt(Packet * p, const DAQ_PktHdr_t * pkthdr, const uint8_t * pkt) if ( Event_Enabled(DECODE_ETH_HDR_TRUNC) ) DecoderEvent(p, EVARGS(ETH_HDR_TRUNC), 1, 1); - p->iph = NULL; + p->eh = NULL; pc.discards++; pc.ethdisc++; PREPROC_PROFILE_END(decodePerfStats);