]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Test for ENOMEM as well.
authorRoy Marples <roy@marples.name>
Mon, 19 Mar 2018 17:26:15 +0000 (17:26 +0000)
committerRoy Marples <roy@marples.name>
Mon, 19 Mar 2018 17:26:15 +0000 (17:26 +0000)
src/dhcpcd.c

index 5b345d5fcdc9c4a5ba5c6adac6c28a9920eab22d..d7de55df68e4302d2a2111d746e199d1668c99ba 100644 (file)
@@ -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;
                }