From: Ted Lemon Date: Wed, 12 Jun 1996 23:50:44 +0000 (+0000) Subject: Option buffer length miscalculated X-Git-Tag: BETA_4_5~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97accb10bd0879d46e1ed57b1ed08ff3c9e4eccf;p=thirdparty%2Fdhcp.git Option buffer length miscalculated --- diff --git a/common/options.c b/common/options.c index 592a11197..f3344bd76 100644 --- a/common/options.c +++ b/common/options.c @@ -65,7 +65,7 @@ void parse_options (packet) /* Go through the options field, up to the end of the packet or the End field. */ parse_option_buffer (packet, &packet -> raw -> options [4], - packet -> packet_length - DHCP_FIXED_NON_UDP + 4); + packet -> packet_length - DHCP_FIXED_NON_UDP - 4); /* If we parsed a DHCP Option Overload option, parse more options out of the buffer(s) containing them. */ if (packet -> options_valid diff --git a/options.c b/options.c index 592a11197..f3344bd76 100644 --- a/options.c +++ b/options.c @@ -65,7 +65,7 @@ void parse_options (packet) /* Go through the options field, up to the end of the packet or the End field. */ parse_option_buffer (packet, &packet -> raw -> options [4], - packet -> packet_length - DHCP_FIXED_NON_UDP + 4); + packet -> packet_length - DHCP_FIXED_NON_UDP - 4); /* If we parsed a DHCP Option Overload option, parse more options out of the buffer(s) containing them. */ if (packet -> options_valid