mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-28 14:54:05 +00:00
dhcp6_disable: need to set pcb_allocated to zero
See bug #53224: dhcp6_disable() pcb_allocated need set to zero.
This commit is contained in:
parent
265f6f5047
commit
e7766297de
@ -357,6 +357,7 @@ dhcp6_disable(struct netif *netif)
|
|||||||
dhcp6_set_state(dhcp6, DHCP6_STATE_OFF, "dhcp6_disable");
|
dhcp6_set_state(dhcp6, DHCP6_STATE_OFF, "dhcp6_disable");
|
||||||
if (dhcp6->pcb_allocated != 0) {
|
if (dhcp6->pcb_allocated != 0) {
|
||||||
dhcp6_dec_pcb_refcount(); /* free DHCPv6 PCB if not needed any more */
|
dhcp6_dec_pcb_refcount(); /* free DHCPv6 PCB if not needed any more */
|
||||||
|
dhcp6->pcb_allocated = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user