From 2e528ad510b2b9fa37200d862a5e4ef9921343ae Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Mon, 23 Jan 2017 17:27:51 +0000 Subject: [PATCH] PPP: clear address state before clearing address netif_ip6_addr_set_state() relies on being able to access the old address on invalidation, for example in order to invalidate PCBs and leave the correct solicited-node MLD group. --- src/netif/ppp/ppp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index d9b50777..7bc5a6ce 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -1273,8 +1273,8 @@ int cif6addr(ppp_pcb *pcb, eui64_t our_eui64, eui64_t his_eui64) { LWIP_UNUSED_ARG(our_eui64); LWIP_UNUSED_ARG(his_eui64); - netif_ip6_addr_set(pcb->netif, 0, IP6_ADDR_ANY6); netif_ip6_addr_set_state(pcb->netif, 0, IP6_ADDR_INVALID); + netif_ip6_addr_set(pcb->netif, 0, IP6_ADDR_ANY6); return 1; }