diff options
author | Steven Barth <steven@midlink.org> | 2014-04-01 18:02:37 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-04-01 18:02:37 +0200 |
commit | 11bae21ad5f9b2cb6e94e8fda06bd99cf49d8ec6 (patch) | |
tree | 068e19c794494c1a3b3d19e965d87e43e8474b1a /src/dhcpv6-ia.c | |
parent | d12c7b8c39bc0f727bde5aa34595e9a581891dca (diff) |
don't kill of managed PD too early
Diffstat (limited to 'src/dhcpv6-ia.c')
-rw-r--r-- | src/dhcpv6-ia.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index a7fbd12..159017f 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -1142,7 +1142,7 @@ ssize_t dhcpv6_handle_ia(uint8_t *buf, size_t buflen, struct interface *iface, a->accept_reconf = accept_reconf; apply_lease(iface, a, true); update_state = true; - } else if (!assigned && a) { // Cleanup failed assignment + } else if (!assigned && a && a->managed_size == 0) { // Cleanup failed assignment free_dhcpv6_assignment(a); } } else if (hdr->msg_type == DHCPV6_MSG_RENEW || |