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:
goldsimon 2018-02-25 13:17:26 +01:00
parent 265f6f5047
commit e7766297de

View File

@ -357,6 +357,7 @@ dhcp6_disable(struct netif *netif)
dhcp6_set_state(dhcp6, DHCP6_STATE_OFF, "dhcp6_disable");
if (dhcp6->pcb_allocated != 0) {
dhcp6_dec_pcb_refcount(); /* free DHCPv6 PCB if not needed any more */
dhcp6->pcb_allocated = 0;
}
}
}