fib: fix unitialized padding in fib_api_next_hop_decode 41/33941/2
authorBenoît Ganne <bganne@cisco.com>
Fri, 1 Oct 2021 17:20:02 +0000 (19:20 +0200)
committerNeale Ranns <neale@graphiant.com>
Mon, 4 Oct 2021 12:48:40 +0000 (12:48 +0000)
commita0f3f8cb7c977b50d0c489cba0ffa963e2c891b3
treef5be417a08220705d905f0520a24c8e04bb7778f
parent7c7b50546107d4e1a5b71a1f55dbf4e1d85126ad
fib: fix unitialized padding in fib_api_next_hop_decode

If the type is IPv4, makes sure the padding bytes are set to 0 as this
is used by ip46_address_is_ip4() to detect the type.

Type: fix

Change-Id: I6a81fa05a6b227086853901bf3dcdc66e6d04d2c
Signed-off-by: Benoît Ganne <bganne@cisco.com>
src/vnet/fib/fib_api.c