http1: fix transaction iterator

The has_next field was not correctly set.
pull/15789/head
Victor Julien 1 month ago
parent 3b351e2574
commit b065a4bf98

@ -2502,7 +2502,7 @@ static AppLayerGetTxIterTuple HTPGetTxIterator(const uint8_t ipproto, const AppP
AppLayerGetTxIterTuple tuple = {
.tx_ptr = tx,
.tx_id = tx_id,
.has_next = state->un.u64 < size,
.has_next = (tx_id + 1) < size,
};
return tuple;
}

Loading…
Cancel
Save