summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2014-11-29 22:06:56 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2014-11-29 22:06:56 +0000
commit2a67a5f48ca4354396071382e2aad49a38e94b2c (patch)
tree1ad8e6a6d4068bd483c66a06de143d22f97dbd19 /sbin/dhclient
parent4afb17d171bd8df8292487a59f021343bfaacfbe (diff)
Explicitly initialize client->state to S_REBOOTING rather than
relying on S_REBOOTING being 0.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 04c5884fbf0..9b4f9e8eda8 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.336 2014/11/27 23:04:12 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.337 2014/11/29 22:06:55 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -630,10 +630,10 @@ main(int argc, char *argv[])
setproctitle("%s", ifi->name);
- if (ifi->linkstat) {
- client->state = S_REBOOTING;
+ client->state = S_REBOOTING;
+ if (ifi->linkstat)
state_reboot();
- } else
+ else
go_daemon();
dispatch();