summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/test-dhcp-option.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-05-21 15:27:53 +0200
committerTom Gundersen <teg@jklm.no>2014-05-21 15:27:53 +0200
commit2688ef60de061bf188c1153c58fb41a78919b97e (patch)
treea9f537b1475a59ef71a75755fd8460d5a2b32c8d /src/libsystemd-network/test-dhcp-option.c
parentf5602be9da8ba0c0cc4865398aa7fa99ad447d56 (diff)
sd-dhcp: make sure we can not fill options so much that there is no space for END
Diffstat (limited to 'src/libsystemd-network/test-dhcp-option.c')
-rw-r--r--src/libsystemd-network/test-dhcp-option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-dhcp-option.c b/src/libsystemd-network/test-dhcp-option.c
index eaf6a535e6..3dd7102d82 100644
--- 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;