mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-21 21:15:01 +00:00
Merge pull request #305 from CGarces/fix_regresion
__nat25_add_pppoe_tag: fix regresion from #298
This commit is contained in:
commit
aeed529c77
@ -116,7 +116,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag)
|
|||||||
/* have a room for new tag */
|
/* have a room for new tag */
|
||||||
memmove(((unsigned char *)ph->tag + data_len), (unsigned char *)ph->tag, ntohs(ph->length));
|
memmove(((unsigned char *)ph->tag + data_len), (unsigned char *)ph->tag, ntohs(ph->length));
|
||||||
ph->length = htons(ntohs(ph->length) + data_len);
|
ph->length = htons(ntohs(ph->length) + data_len);
|
||||||
memcpy((unsigned char *)ph->tag, tag, tag->tag_len);
|
memcpy((unsigned char *)ph->tag, tag, data_len);
|
||||||
return data_len;
|
return data_len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user