]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Ignore route(4) errors.
authorRoy Marples <roy@marples.name>
Wed, 12 Apr 2017 10:16:54 +0000 (11:16 +0100)
committerRoy Marples <roy@marples.name>
Wed, 12 Apr 2017 10:16:54 +0000 (11:16 +0100)
src/if-bsd.c

index 6ba1b5e8ff22333e877097425a9b4f5fa61807fa..d2f0dc622bc966b62315df316940336b98a96158 100644 (file)
@@ -953,6 +953,10 @@ if_rtm(struct dhcpcd_ctx *ctx, const struct rt_msghdr *rtm)
        if (if_ownmsgpid(ctx, rtm->rtm_pid, rtm->rtm_seq))
                return;
 
+       /* Ignore errors. */
+       if (rtm->rtm_errno != 0)
+               return;
+
        if (if_copyrt(ctx, &rt, rtm) == -1)
                return;