From: Renato Westphal Date: Thu, 28 Oct 2021 15:35:56 +0000 (-0300) Subject: lib: fix BFD IPv6 session address change X-Git-Tag: docker/8.1.0~2^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=5447cc5817b11dd13f27f6a21b132c6681046b84;p=matthieu%2Ffrr.git lib: fix BFD IPv6 session address change Pass the correct family type and remove unneeded casts. Signed-off-by: Renato Westphal (cherry picked from commit ae0945733333f60fccb0b4ac170ca3ee7351828b) --- diff --git a/lib/bfd.c b/lib/bfd.c index ea363b7ca4..2ad75c052f 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -578,8 +578,7 @@ void bfd_sess_set_ipv4_addrs(struct bfd_session_params *bsp, void bfd_sess_set_ipv6_addrs(struct bfd_session_params *bsp, struct in6_addr *src, struct in6_addr *dst) { - if (!bfd_sess_address_changed(bsp, AF_INET, (struct in6_addr *)src, - (struct in6_addr *)dst)) + if (!bfd_sess_address_changed(bsp, AF_INET6, src, dst)) return; /* If already installed, remove the old setting. */