From ada7c0b7db22ff220713b0b78ff41f6b1b7bba2e Mon Sep 17 00:00:00 2001 From: "Martine S. Lenders" Date: Wed, 9 Oct 2019 15:18:14 +0200 Subject: [PATCH] gnrc_netif: avoid deprecated addresses, don't prefer them! --- sys/net/gnrc/netif/gnrc_netif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/netif/gnrc_netif.c b/sys/net/gnrc/netif/gnrc_netif.c index de5ca4f6c4..97f82f765d 100644 --- a/sys/net/gnrc/netif/gnrc_netif.c +++ b/sys/net/gnrc/netif/gnrc_netif.c @@ -1042,7 +1042,7 @@ static ipv6_addr_t *_src_addr_selection(gnrc_netif_t *netif, } } /* Rule 3: Avoid deprecated addresses. */ - if (_get_state(netif, i) == GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_DEPRECATED) { + if (_get_state(netif, i) != GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_DEPRECATED) { DEBUG("winner for rule 3 found\n"); winner_set[i] += RULE_3_PTS; if (winner_set[i] > max_pts) {