summaryrefslogtreecommitdiffstats
path: root/src/dhcpcd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2018-03-19 17:26:15 +0000
committerRoy Marples <roy@marples.name>2018-03-19 17:26:15 +0000
commitd7b82e4b832d5a4881c72052eb723d9ea4279eeb (patch)
treef45a085655024c385d8674891ee2bbd5f87be2e5 /src/dhcpcd.c
parent1437db1d25f09c5235ed792bd278ee3f0f17dd65 (diff)
downloaddhcpcd-d7b82e4b832d5a4881c72052eb723d9ea4279eeb.tar.xz
Test for ENOMEM as well.
Diffstat (limited to 'src/dhcpcd.c')
-rw-r--r--src/dhcpcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpcd.c b/src/dhcpcd.c
index 5b345d5f..d7de55df 100644
--- a/src/dhcpcd.c
+++ b/src/dhcpcd.c
@@ -1033,7 +1033,7 @@ dhcpcd_handlelink(void *arg)
struct dhcpcd_ctx *ctx = arg;
if (if_handlelink(ctx) == -1) {
- if (errno == ENOBUFS) {
+ if (errno == ENOBUFS || errno == ENOMEM) {
dhcpcd_linkoverflow(ctx);
return;
}