From: Roy Marples Date: Wed, 12 Apr 2017 10:16:54 +0000 (+0100) Subject: Ignore route(4) errors. X-Git-Tag: v7.0.0-beta3~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac71a6e154e455e311f72d43a656d6d6bf6c0dd6;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;