diff options
Diffstat (limited to 'src/libsystemd-dhcp')
-rw-r--r-- | src/libsystemd-dhcp/sd-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-dhcp/sd-dhcp-client.c b/src/libsystemd-dhcp/sd-dhcp-client.c index 01397cff39..ee6e89eacb 100644 --- a/src/libsystemd-dhcp/sd-dhcp-client.c +++ b/src/libsystemd-dhcp/sd-dhcp-client.c @@ -303,7 +303,7 @@ static int client_send_request(sd_dhcp_client *client, uint16_t secs) { uint8_t *opt; optlen = DHCP_MIN_OPTIONS_SIZE; - len = DHCP_MESSAGE_SIZE + optlen; + len = sizeof(DHCPPacket) + optlen; request = malloc0(len); if (!request) |