A TXEND packet which is received in the middle of a transaction cannot finish this transaction. This can only be done by a PUSH_DATA when the rest of the packets were received.
Signed-off-by: Sven Eckelmann sven@narfation.org --- recv.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/recv.c b/recv.c index 1f56016..9fabfa4 100644 --- a/recv.c +++ b/recv.c @@ -250,6 +250,8 @@ static int process_alfred_push_data(struct globals *globals, list_add_tail(&transaction_packet->list, &head->packet_list); head->num_packet++;
+ finish_alfred_transaction(globals, head, mac); + return 0; err: return -1;