mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-12-23 12:37:42 +00:00
__nat25_add_pppoe_tag: fix regresion from #298
This commit is contained in:
parent
0043022f0c
commit
d6e2af011d
@ -116,7 +116,7 @@ static int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag)
|
||||
/* have a room for new tag */
|
||||
memmove(((unsigned char *)ph->tag + data_len), (unsigned char *)ph->tag, ntohs(ph->length));
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user