]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: xt_connmark: do not cast xt_connmark_tginfo1 to xt_connmark_tginfo2
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 19 Apr 2018 14:17:14 +0000 (16:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 19 Apr 2018 14:19:28 +0000 (16:19 +0200)
commit352855419419a03d2f69b27a851907ce2045e0f5
tree4ef4e5a66e071e87539c0ca5e2321abbd95945cf
parentb8b335c67c41e3ee681896a510ed2590851dc422
netfilter: xt_connmark: do not cast xt_connmark_tginfo1 to xt_connmark_tginfo2

These structures have different layout, fill xt_connmark_tginfo2 with
old fields in xt_connmark_tginfo1. Based on patch from Jack Ma.

Fixes: 313a8007d5a6 ("netfilter: xt_conntrack: Support bit-shifting for CONNMARK & MARK targets.")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_connmark.c