]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should end options correctly.
authorRoy Marples <roy@marples.name>
Sun, 13 Apr 2008 15:29:09 +0000 (15:29 +0000)
committerRoy Marples <roy@marples.name>
Sun, 13 Apr 2008 15:29:09 +0000 (15:29 +0000)
client.c

index 10c37f44255ec63ac8469ef42d71e82a9ebb1cdd..391df175d179fab8dede0c2f1b3492def42a59aa 100644 (file)
--- a/client.c
+++ b/client.c
@@ -827,6 +827,7 @@ handle_timeout(struct if_state *state, const struct options *options)
                                state->dhcp = xmalloc(sizeof(*state->dhcp));
                        memset(state->dhcp, 0, sizeof(*state->dhcp));
                        state->dhcp->yiaddr = lease->addr.s_addr;
+                       state->dhcp->options[0] = DHCP_END;
                }
 #endif