Parker (wp02855 at gmail dot com) for reporting the issue.
[ISC-Bugs #41185]
+- Corrected a dhclient -6 issue that caused the client to crash with an
+ "Impossible condition" error after de-preferencing its only IA binding.
+ The crash occurred when server configuration changes rendered the existing
+ binding out-of-range and no other leases were available to offer.
+ [ISC-Bugs #44373]
+
Changes since 4.1-ESV-R14b1
- None
/* dhc6.c - DHCPv6 client routines. */
/*
- * Copyright (c) 2012-2016 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2012-2017 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 2006-2010 by Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and distribute this software for any
TIME renew=MAX_TIME, rebind=MAX_TIME, depref=MAX_TIME,
lo_expire=MAX_TIME, hi_expire=0, max_ia_starts = 0, tmp;
int has_addrs = ISC_FALSE;
+ int has_preferred_addrs = ISC_FALSE;
struct timeval tv;
lease = client->active_lease;
if (tmp < depref)
depref = tmp;
+
+ if (!(addr->flags & DHC6_ADDR_EXPIRED)) {
+ has_preferred_addrs = ISC_TRUE;
+ }
}
if (!(addr->flags & DHC6_ADDR_EXPIRED)) {
break;
default:
- log_fatal("Impossible condition at %s:%d.", MDL);
+ if (has_preferred_addrs) {
+ log_fatal("Impossible condition, state %d at %s:%d.",
+ client->state, MDL);
+ }
}
/* Separately, set a time at which we will depref and expire