summaryrefslogtreecommitdiffstats
path: root/dhcp.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-18 10:52:01 +0000
committerRoy Marples <roy@marples.name>2008-10-18 10:52:01 +0000
commitaec7d71ddb2d4236c7db2fe79350274ca26e178f (patch)
treed4ad638e87ad7f880dc0132d20070e918d3aaea7 /dhcp.c
parent49c0efdadb6fa4a27bf0405302945403d4d62ef8 (diff)
downloaddhcpcd-aec7d71ddb2d4236c7db2fe79350274ca26e178f.tar.xz
Use the existing start_reboot function instead of a start_request.
Diffstat (limited to 'dhcp.c')
-rw-r--r--dhcp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/dhcp.c b/dhcp.c
index bd360885..59c648df 100644
--- a/dhcp.c
+++ b/dhcp.c
@@ -831,14 +831,13 @@ make_message(struct dhcp_message **message,
if (lease->server.s_addr)
PUTADDR(DHO_SERVERID, lease->server);
}
- }
- if (type == DHCP_RELEASE) {
- if (lease->server.s_addr)
+ if (type == DHCP_RELEASE) {
+ if (lease->server.s_addr)
PUTADDR(DHO_SERVERID, lease->server);
+ }
}
-
if (type == DHCP_DISCOVER ||
type == DHCP_INFORM ||
type == DHCP_REQUEST)