diff options
-rw-r--r-- | networking/udhcp/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c index 1c1863451..0cf4dab63 100644 --- a/networking/udhcp/common.c +++ b/networking/udhcp/common.c | |||
@@ -257,7 +257,7 @@ uint8_t* FAST_FUNC udhcp_get_option(struct dhcp_packet *packet, int code) | |||
257 | continue; /* complain and return NULL */ | 257 | continue; /* complain and return NULL */ |
258 | 258 | ||
259 | if (optionptr[OPT_CODE] == code) { | 259 | if (optionptr[OPT_CODE] == code) { |
260 | log_option("Option found", optionptr); | 260 | log_option("option found", optionptr); |
261 | return optionptr + OPT_DATA; | 261 | return optionptr + OPT_DATA; |
262 | } | 262 | } |
263 | 263 | ||
@@ -303,7 +303,7 @@ void FAST_FUNC udhcp_add_binary_option(struct dhcp_packet *packet, uint8_t *addo | |||
303 | addopt[OPT_CODE]); | 303 | addopt[OPT_CODE]); |
304 | return; | 304 | return; |
305 | } | 305 | } |
306 | log_option("Adding option", addopt); | 306 | log_option("adding option", addopt); |
307 | memcpy(optionptr + end, addopt, len); | 307 | memcpy(optionptr + end, addopt, len); |
308 | optionptr[end + len] = DHCP_END; | 308 | optionptr[end + len] = DHCP_END; |
309 | } | 309 | } |