From 2d0b7e24a52d51904faa8a8e96d68863491c110a Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Mon, 2 Dec 2013 11:54:32 +0100 Subject: Fixes problem with source address selection in BGP and BFD. --- proto/bfd/bfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/bfd/bfd.c') diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c index 89355483..b697e84c 100644 --- a/proto/bfd/bfd.c +++ b/proto/bfd/bfd.c @@ -740,7 +740,7 @@ bfd_neigh_notify(struct neighbor *nb) if ((nb->scope > 0) && !n->req) { - ip_addr local = ipa_nonzero(n->local) ? n->local : nb->iface->addr->ip; + ip_addr local = ipa_nonzero(n->local) ? n->local : nb->ifa->ip; n->req = bfd_request_session(p->p.pool, n->addr, local, nb->iface, NULL, NULL); } -- cgit v1.2.3