aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networking/udhcp/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/common.c b/networking/udhcp/common.c
index ae0e0d306..9c27cd0ef 100644
--- a/networking/udhcp/common.c
+++ b/networking/udhcp/common.c
@@ -424,7 +424,7 @@ static NOINLINE void attach_option(
424 existing->data[OPT_DATA + old_len] = ' '; 424 existing->data[OPT_DATA + old_len] = ' ';
425 old_len++; 425 old_len++;
426 } 426 }
427 memcpy(existing->data + OPT_DATA + old_len, buffer, length); 427 memcpy(existing->data + OPT_DATA + old_len, (allocated ? allocated : buffer), length);
428 existing->data[OPT_LEN] = old_len + length; 428 existing->data[OPT_LEN] = old_len + length;
429 } /* else, ignore the data, we could put this in a second option in the future */ 429 } /* else, ignore the data, we could put this in a second option in the future */
430 } /* else, ignore the new data */ 430 } /* else, ignore the new data */