diff options
author | 2017-10-16 13:28:33 +0000 | |
---|---|---|
committer | 2017-10-16 13:28:33 +0000 | |
commit | 862672d77f63bcecad9338e8d08f73539e8ccd3a (patch) | |
tree | c7ec3cd5eddd5f3571b628d91e3f5aeac133ca53 | |
parent | Multiple tweaks: (diff) | |
download | wireguard-openbsd-862672d77f63bcecad9338e8d08f73539e8ccd3a.tar.xz wireguard-openbsd-862672d77f63bcecad9338e8d08f73539e8ccd3a.zip |
Print the correct message and return an error code when no route entry
matches the corresponding RTM_GET request.
Based on a submission from Julien Dhaille, ok bluhm@
-rw-r--r-- | sbin/route/route.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 83554a431fa..8b595d291d4 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.203 2017/09/06 20:21:22 benno Exp $ */ +/* $OpenBSD: route.c,v 1.204 2017/10/16 13:28:33 mpi Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -674,11 +674,6 @@ newroute(int argc, char **argv) } else break; } - if (*cmd == 'g') { - if (ret != 0 && qflag == 0) - warn("writing to routing socket"); - exit(0); - } oerrno = errno; if (!qflag) { printf("%s %s %s", cmd, ishost ? "host" : "net", dest); |