From 2a55afbd89d484eb738f1cae2054f864448c6c1a Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sun, 20 Oct 2019 07:50:32 +0200 Subject: [PATCH] decode/pppoe: fix potential crash in debug statement --- src/decode-pppoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2