Wifi: fix some silly error in SoftAP_RXHandler. I don't know but that might have caused buffer overflows.

This commit is contained in:
luigi__ 2010-04-18 17:38:21 +00:00
parent c390f82621
commit b9740ab5c7
1 changed files with 1 additions and 1 deletions

View File

@ -2155,7 +2155,7 @@ static void SoftAP_RXHandler(u_char* user, const struct pcap_pkthdr* h, const u_
*(u16*)&wpacket[12+26] = 0x0003;
*(u16*)&wpacket[12+28] = 0x0000;
*(u16*)&wpacket[12+30] = *(u16*)&data[12];
memcpy(&wpacket[12+32], &data[14], wpacketLen);
memcpy(&wpacket[12+32], &data[14], h->len-14);
SoftAP.seqNum++;