diff options
| author | Roy Marples <roy@marples.name> | 2017-04-12 11:16:54 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-04-12 11:16:54 +0100 |
| commit | 78312f3ddba7b5c1c4c62c93ff706bd87bc49f23 (patch) | |
| tree | b222cdc6943f8e2a309b728c9746919c5763c1e2 /src/if-bsd.c | |
| parent | 1a1db77f5f8245f9d5e20462b649cdfa3a9fb79f (diff) | |
| download | dhcpcd-78312f3ddba7b5c1c4c62c93ff706bd87bc49f23.tar.xz | |
Ignore route(4) errors.
Diffstat (limited to 'src/if-bsd.c')
| -rw-r--r-- | src/if-bsd.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
