]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ip: Fix rx_otherhost_dropped support
authorPetr Machata <petrm@nvidia.com>
Tue, 28 Jun 2022 10:19:11 +0000 (12:19 +0200)
committerDavid Ahern <dsahern@kernel.org>
Wed, 6 Jul 2022 14:47:58 +0000 (08:47 -0600)
commitce4807f4437a95ed38290e465148a28e28e914b0
tree67cc7f5157f5f63d4231080c17c88b342eef7e98
parente903fdfb560ec3ae44df788f1878d0c81b2d5327
ip: Fix rx_otherhost_dropped support

The commit cited below added a new column to print_stats64(). However it
then updated only one size_columns() call site, neglecting to update the
remaining three. As a result, in those not-updated invocations,
size_columns() now accesses a vararg argument that is not being passed,
which is undefined behavior.

Fixes: cebf67a35d8a ("show rx_otherehost_dropped stat in ip link show")
CC: Tariq Toukan <tariqt@nvidia.com>
CC: Itay Aveksis <itayav@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
ip/ipaddress.c