From: Victor Julien Date: Sun, 20 Oct 2019 05:50:32 +0000 (+0200) Subject: decode/pppoe: fix potential crash in debug statement X-Git-Tag: suricata-5.0.1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a55afbd89d484eb738f1cae2054f864448c6c1a;p=thirdparty%2Fsuricata.git decode/pppoe: fix potential crash in debug statement --- diff --git a/src/decode-pppoe.c b/src/decode-pppoe.c index e1c5435b62..8887a30dba 100644 --- a/src/decode-pppoe.c +++ b/src/decode-pppoe.c @@ -223,7 +223,7 @@ int DecodePPPOESession(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, break; default: - SCLogDebug("unknown PPP protocol: %" PRIx32 "",SCNtohs(p->ppph->protocol)); + SCLogDebug("unknown PPP protocol: %" PRIx32 "",SCNtohs(p->pppoesh->protocol)); ENGINE_SET_INVALID_EVENT(p, PPP_WRONG_TYPE); return TM_ECODE_OK; }