From: Roy Marples Date: Wed, 12 Apr 2017 10:16:54 +0000 (+0100) Subject: Ignore route(4) errors. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78312f3ddba7b5c1c4c62c93ff706bd87bc49f23;p=thirdparty%2Fdhcpcd.git Ignore route(4) errors. --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 6ba1b5e8..d2f0dc62 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -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;