diff --git a/plugins/ndpi/ndpi.c b/plugins/ndpi/ndpi.c index 27e34ca080..814eb9164c 100644 --- a/plugins/ndpi/ndpi.c +++ b/plugins/ndpi/ndpi.c @@ -233,7 +233,7 @@ static int DetectnDPIProtocolPacketMatch( struct NdpiFlowContext *flowctx = NdpiGetFlowContext(f); if (flowctx == NULL) { - SCLogDebug("packet %" PRIu64 ": no flowctx", PcapPacketCntGet(p)); + SCLogDebug("packet %" PRIu64 ": no flowctx", p->pcap_cnt); SCReturnInt(0); } @@ -380,7 +380,7 @@ static int DetectnDPIRiskPacketMatch( } if (flowctx->ndpi_flow == NULL) { - SCLogDebug("packet %" PRIu64 ": ndpi_flow is NULL", PcapPacketCntGet(p)); + SCLogDebug("packet %" PRIu64 ": ndpi_flow is NULL", p->pcap_cnt); SCReturnInt(0); }