From 20d471b933890fb47e8f0be499bfd7b40acbd60c Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Fri, 20 Dec 2013 17:16:12 +0200 Subject: libsystemd-dhcp: Return proper error on OOM --- src/libsystemd-dhcp/dhcp-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsystemd-dhcp') 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); -- cgit v1.2.3-54-g00ecf