sd-dhcp-client: check return from dhcp_option_append

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-06-18 23:21:00 +02:00
parent 02557f973a
commit f7926298e9
+2
View File
@@ -398,6 +398,8 @@ static int client_send_discover(sd_dhcp_client *client) {
r = dhcp_option_append(&discover->dhcp, optlen, &optoffset, 0,
DHCP_OPTION_END, 0, NULL);
if (r < 0)
return r;
/* We currently ignore:
The client SHOULD wait a random time between one and ten seconds to