chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libsystemd-dhcp: Return proper error on OOM
[elogind.git]
/
src
/
libsystemd-dhcp
/
dhcp-client.c
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);