clear the offset when freeing a packet

This commit is contained in:
Mariano Alvira 2010-03-10 17:59:04 -05:00
parent a5f8b58e07
commit 3cd4bf5768

View file

@ -106,7 +106,7 @@ void free_packet(volatile packet_t *p) {
if(!p) { PRINTF("free_packet passed packet 0\n\r"); return; }
if(p == &dummy_ack) { return; }
p->length = 0;
p->length = 0; p->offset = 0;
p->left = free_head; p->right = 0;
free_head = p;