]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: fix compiler warnings in ip6 pedit
authorStephen Hemminger <stephen@networkplumber.org>
Sun, 29 Nov 2020 17:40:49 +0000 (09:40 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 30 Nov 2020 00:20:23 +0000 (16:20 -0800)
commit2319db905295fa47c651b52ae09a8d7bf305c6f7
tree1be9c050ab7502026ae1302068cdede21ed8bf07
parent5bdc4e9151a19f0bc8c851cfcca75363abb19fde
tc: fix compiler warnings in ip6 pedit

Gcc-10 complains about referencing a zero size array.
This occurs because the array of keys is actually in the following
structure which is part of the overall selector.

The original code was safe, but better to just use the key
array directly.

Fixes: 2d9a8dc439ee ("tc: p_ip6: Support pedit of IPv6 dsfield")
Cc: petrm@mellanox.com
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/p_ip6.c