summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-23 22:09:23 +0100
committerTom Gundersen <teg@jklm.no>2014-02-23 23:00:18 +0100
commit279efc700764ebe5c9bb81e3843e61f7798e1794 (patch)
tree7451f079060bf282347a46885b50221db6463bd9
parent0a1b6da82109c3b08b1f966a1625a77cc312135a (diff)
sd-dhcp-client: fix max size of REQUEST message
-rw-r--r--src/libsystemd-dhcp/sd-dhcp-client.c2
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)