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.
pull/1580/head
sfd 11 years ago committed by Victor Julien
parent e028917955
commit e58cfb6a05

@ -442,7 +442,7 @@ ProcessErfDagRecords(ErfDagThreadVars *ewtn, uint8_t *top, uint32_t *pkts_read)
break; break;
case TYPE_ETH: case TYPE_ETH:
if (dr->lctr) { if (dr->lctr) {
StatsAddUI64(tv, ewtn->drops, ntohs(dr->lctr)); StatsAddUI64(ewtn->tv, ewtn->drops, ntohs(dr->lctr));
} }
break; break;
default: default:
@ -535,7 +535,7 @@ ProcessErfDagRecord(ErfDagThreadVars *ewtn, char *prec)
p->ts.tv_sec++; p->ts.tv_sec++;
} }
StatsIncr(tv, ewtn->packets); StatsIncr(ewtn->tv, ewtn->packets);
ewtn->bytes += wlen; ewtn->bytes += wlen;
if (TmThreadsSlotProcessPkt(ewtn->tv, ewtn->slot, p) != TM_ECODE_OK) { if (TmThreadsSlotProcessPkt(ewtn->tv, ewtn->slot, p) != TM_ECODE_OK) {

Loading…
Cancel
Save