chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c8035a
)
libsystemd-dhcp: Return proper error on OOM
author
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 20 Dec 2013 15:16:12 +0000
(17:16 +0200)
committer
Tom Gundersen
<teg@jklm.no>
Sun, 22 Dec 2013 13:28:00 +0000
(14:28 +0100)
src/libsystemd-dhcp/dhcp-client.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-dhcp/dhcp-client.c
b/src/libsystemd-dhcp/dhcp-client.c
index fe410676003541fdf36611defb1ab17d5c87e880..043d574c105062eb7707eead158828335cd59d0f 100644
(file)
--- 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 -ENO
BUFS
;
+ return -ENO
MEM
;
len = len - DHCP_IP_UDP_SIZE;
r = dhcp_option_parse(&offer->dhcp, len, client_parse_offer, lease);