chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sd-dhcp: make sure we can not fill options so much that there is no space for END
[elogind.git]
/
src
/
libsystemd-network
/
test-dhcp-option.c
diff --git
a/src/libsystemd-network/test-dhcp-option.c
b/src/libsystemd-network/test-dhcp-option.c
index eaf6a535e6fe21bcdd7e48e4c99ae7e5fbfae785..3dd7102d821cdc115fa4b137b8f7ecaa4300faf4 100644
(file)
--- a/
src/libsystemd-network/test-dhcp-option.c
+++ b/
src/libsystemd-network/test-dhcp-option.c
@@
-85,7
+85,7
@@
static void test_invalid_buffer_length(void)
static void test_message_init(void)
{
_cleanup_free_ DHCPMessage *message = NULL;
- size_t optlen =
3
, optoffset;
+ size_t optlen =
4
, optoffset;
size_t len = sizeof(DHCPMessage) + optlen;
uint8_t *magic;