diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-12-20 17:16:12 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-12-22 14:28:00 +0100 |
commit | 20d471b933890fb47e8f0be499bfd7b40acbd60c (patch) | |
tree | 002ece02ee345c9d4b8b2828551140c5a1362231 /src | |
parent | 1c8035a89747ed3aadc433bdd11b865cd0d02472 (diff) |
libsystemd-dhcp: Return proper error on OOM
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-dhcp/dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-dhcp/dhcp-client.c b/src/libsystemd-dhcp/dhcp-client.c index fe41067600..043d574c10 100644 --- a/src/libsystemd-dhcp/dhcp-client.c +++ b/src/libsystemd-dhcp/dhcp-client.c @@ -726,7 +726,7 @@ static int client_receive_ack(sd_dhcp_client *client, DHCPPacket *offer, lease = new0(DHCPLease, 1); if (!lease) - return -ENOBUFS; + return -ENOMEM; len = len - DHCP_IP_UDP_SIZE; r = dhcp_option_parse(&offer->dhcp, len, client_parse_offer, lease); |