mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
udhcpc: fix a problem with binary-encoded options #2
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6db5f679a2
commit
c133fa66f3
@ -424,7 +424,7 @@ static NOINLINE void attach_option(
|
|||||||
existing->data[OPT_DATA + old_len] = ' ';
|
existing->data[OPT_DATA + old_len] = ' ';
|
||||||
old_len++;
|
old_len++;
|
||||||
}
|
}
|
||||||
memcpy(existing->data + OPT_DATA + old_len, buffer, length);
|
memcpy(existing->data + OPT_DATA + old_len, (allocated ? allocated : buffer), length);
|
||||||
existing->data[OPT_LEN] = old_len + length;
|
existing->data[OPT_LEN] = old_len + length;
|
||||||
} /* else, ignore the data, we could put this in a second option in the future */
|
} /* else, ignore the data, we could put this in a second option in the future */
|
||||||
} /* else, ignore the new data */
|
} /* else, ignore the new data */
|
||||||
|
Loading…
Reference in New Issue
Block a user