mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-25 17:18:09 +00:00
Reset sentlen when advancing
This commit is contained in:
parent
dcfa910d1c
commit
1f69a1b61e
@ -35,11 +35,11 @@ void
|
||||
packet_advance(struct packet *packet)
|
||||
{
|
||||
packet->offset += packet->sentlen;
|
||||
packet->sentlen = 0;
|
||||
if (packet->offset == packet->len) {
|
||||
/* Packet completed */
|
||||
packet->offset = 0;
|
||||
packet->len = 0;
|
||||
packet->sentlen = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user