From e58cfb6a05b2938a3b79f924fc79de81560dbc30 Mon Sep 17 00:00:00 2001 From: sfd Date: Fri, 3 Jul 2015 16:43:02 +1200 Subject: [PATCH] Fix compile bad dereferences The src/source-erf-dag.c code was not compiling. It looks like some stats counters were added but not tested as the dereferences are incorrect. --- src/source-erf-dag.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/source-erf-dag.c b/src/source-erf-dag.c index 2614dd05b3..f66407122f 100644 --- a/src/source-erf-dag.c +++ b/src/source-erf-dag.c @@ -442,7 +442,7 @@ ProcessErfDagRecords(ErfDagThreadVars *ewtn, uint8_t *top, uint32_t *pkts_read) break; case TYPE_ETH: if (dr->lctr) { - StatsAddUI64(tv, ewtn->drops, ntohs(dr->lctr)); + StatsAddUI64(ewtn->tv, ewtn->drops, ntohs(dr->lctr)); } break; default: @@ -535,7 +535,7 @@ ProcessErfDagRecord(ErfDagThreadVars *ewtn, char *prec) p->ts.tv_sec++; } - StatsIncr(tv, ewtn->packets); + StatsIncr(ewtn->tv, ewtn->packets); ewtn->bytes += wlen; if (TmThreadsSlotProcessPkt(ewtn->tv, ewtn->slot, p) != TM_ECODE_OK) {