From 46ca562ea192a8f952d0da9de4e4f4de8e583bdd Mon Sep 17 00:00:00 2001 From: Kevin Steves Date: Wed, 27 May 2009 15:04:35 +0000 Subject: add missing else; from ISC. this fixes an old, old bug that could cause lease entries to be lost when initially loading client leases. found while looking for another issue. ok krw@ --- sbin/dhclient/clparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sbin/dhclient') diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c index aa485361d00..3661018d6ab 100644 --- a/sbin/dhclient/clparse.c +++ b/sbin/dhclient/clparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clparse.c,v 1.34 2007/02/14 23:19:26 deraadt Exp $ */ +/* $OpenBSD: clparse.c,v 1.35 2009/05/27 15:04:34 stevesk Exp $ */ /* Parser for dhclient config and lease files... */ @@ -449,7 +449,8 @@ parse_client_lease_statement(FILE *cfile, int is_static) client->leases = lp->next; free_client_lease(lp); break; - } + } else + pl = lp; } /* -- cgit v1.2.3