aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/common.c')
-rw-r--r--networking/udhcp/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index 589bcd674..1aaf5255c 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -268,7 +268,8 @@ uint8_t* FAST_FUNC udhcp_get_option(struct dhcp_packet *packet, int code)
268 } 268 }
269 269
270 if (optionptr[OPT_CODE] == DHCP_OPTION_OVERLOAD) { 270 if (optionptr[OPT_CODE] == DHCP_OPTION_OVERLOAD) {
271 overload |= optionptr[OPT_DATA]; 271 if (len >= 3)
272 overload |= optionptr[OPT_DATA];
272 /* fall through */ 273 /* fall through */
273 } 274 }
274 optionptr += len; 275 optionptr += len;