From d6e2af011d25ed85d91c9938002bb3cd7f3144b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Garc=C3=A9s?= Date: Sun, 25 Dec 2022 19:13:28 +0000 Subject: [PATCH] __nat25_add_pppoe_tag: fix regresion from #298 --- core/rtw_br_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rtw_br_ext.c b/core/rtw_br_ext.c index 65e99fc..a2c491e 100644 --- a/core/rtw_br_ext.c +++ b/core/rtw_br_ext.c @@ -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; }