From: Roy Marples Date: Tue, 3 Dec 2013 23:33:13 +0000 (+0000) Subject: Fix brain damage X-Git-Tag: v6.2.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22e299e6ef3dfaa320e33452d42c61489579d8d2;p=thirdparty%2Fdhcpcd.git Fix brain damage --- diff --git a/dhcp-common.c b/dhcp-common.c index 8284e9f9..96b41c7b 100644 --- a/dhcp-common.c +++ b/dhcp-common.c @@ -669,8 +669,8 @@ dhcp_zero_index(struct dhcp_opt *opt) struct dhcp_opt *o; opt->index = 0; - for (i = 0, o = opt->embopts; i < opt->embopts_len; i++, opt++) + for (i = 0, o = opt->embopts; i < opt->embopts_len; i++, o++) dhcp_zero_index(o); - for (i = 0, o = opt->encopts; i < opt->encopts_len; i++, opt++) + for (i = 0, o = opt->encopts; i < opt->encopts_len; i++, o++) dhcp_zero_index(o); }