]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: avoid memcmp comparison of struct nexthop
authorIgor Ryzhov <iryzhov@nfware.com>
Tue, 8 Feb 2022 17:34:28 +0000 (20:34 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 8 Feb 2022 17:34:28 +0000 (20:34 +0300)
commite4190ca4abb5282a9b4144f8c629b8008c41f64b
tree4a596b22525b689e026d4a62b4a206ec4cb1b2fa
parent107f77b56f1bf4bc4b82668c738f1ff12b3967fb
bgpd: avoid memcmp comparison of struct nexthop

Using memcmp is wrong because struct nexthop may contain unitialized
padding bytes that should not be compared.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bgpd/bgp_pbr.c