diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-05-27 15:04:35 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2009-05-27 15:04:35 +0000 |
commit | 46ca562ea192a8f952d0da9de4e4f4de8e583bdd (patch) | |
tree | 556908d1c41e29b4db3ca80e9bc29896f3e72f00 /sbin/dhclient | |
parent | 4a7ebaf1aee0b6855c2ddfa6c4ecf6403e59ceba (diff) |
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@
Diffstat (limited to 'sbin/dhclient')
-rw-r--r-- | sbin/dhclient/clparse.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } /* |