const AppProto alproto = f->alproto;
AppLayerGetTxIteratorFunc IterFunc = AppLayerGetTxIterator(ipproto, alproto);
- AppLayerGetTxIterState state;
- memset(&state, 0, sizeof(state));
+ AppLayerGetTxIterState state = { 0 };
SCLogDebug("called: %s, tag_txs_as_inspected %s",direction==0?"toserver":"toclient",
tag_txs_as_inspected?"true":"false");
const int tx_end_state = AppLayerParserGetStateProgressCompletionStatus(alproto, flow_flags);
AppLayerGetTxIteratorFunc IterFunc = AppLayerGetTxIterator(ipproto, alproto);
- AppLayerGetTxIterState state;
- memset(&state, 0, sizeof(state));
+ AppLayerGetTxIterState state = { 0 };
while (1) {
AppLayerGetTxIterTuple ires = IterFunc(ipproto, alproto, alstate, tx_id_min, total_txs, &state);