Fix packetlength value when packet is fragment

This commit is contained in:
vemax78 2014-03-23 21:59:57 +01:00
parent eee74744d0
commit 884130dff1
1 changed files with 1 additions and 0 deletions

View File

@ -947,6 +947,7 @@ int capwap_packet_rxmng_add_recv_packet(struct capwap_packet_rxmng* rxmngpacket,
unsigned short sanityfragoffset = 0;
/* Sanity check and complete */
rxmngpacket->packetlength = 0;
itemsearch = rxmngpacket->fragmentlist->first;
while (itemsearch) {
packetsearch = (struct capwap_fragment_packet_item*)itemsearch->item;