From 96b620e5a2752080dfab31d11fea860971da75f2 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sun, 30 Dec 2007 18:49:56 +0000 Subject: [PATCH] Fix release of empty IPv6 active lease --- RELNOTES | 3 +++ client/dhc6.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELNOTES b/RELNOTES index 1a0ea8da..0efba5ef 100644 --- a/RELNOTES +++ b/RELNOTES @@ -86,6 +86,9 @@ suggested fixes to . - NoAddrsAvail answers to SOLICITs are always ADVERTISEs even when a SOLICIT carries a rapid-commit option. +- Return in place of raise an impossible condition when one tries to release + an empty active lease. + Changes since 4.0.0b3 - The reverse dns name for PTR updates on IPv6 addresses has been fixed to diff --git a/client/dhc6.c b/client/dhc6.c index 964aca82..8bf89b09 100644 --- a/client/dhc6.c +++ b/client/dhc6.c @@ -1247,7 +1247,7 @@ do_release6(void *input) client = input; if (client->active_lease == NULL) - log_fatal("Impossible condition at %s:%d.", MDL); + return; if ((client->MRC != 0) && (client->txcount > client->MRC)) { log_info("Max retransmission count exceeded.");