]> git.ipfire.org Git - thirdparty/iproute2.git/commit
nexthop: fix error reporting in filter dump
authorAndrea Claudi <aclaudi@redhat.com>
Tue, 10 Mar 2020 12:15:17 +0000 (13:15 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 15 Mar 2020 16:54:42 +0000 (09:54 -0700)
commitd9b868436a6fce8986560178c6d1a78072e21861
tree6fe2040e1029354062f90701149a90b0ddd2755c
parentb5a77cf70116f4c5c1767f0e0ab78f7ff2f58bca
nexthop: fix error reporting in filter dump

nh_dump_filter is missing a return value check in two cases.
Fix this simply adding an assignment to the proper variable.

Fixes: 63df8e8543b03 ("Add support for nexthop objects")
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipnexthop.c