diff options
author | Ryan Stone <rstone@FreeBSD.org> | 2015-09-17 16:56:49 +0000 |
---|---|---|
committer | Ryan Stone <rstone@FreeBSD.org> | 2015-09-17 16:56:49 +0000 |
commit | 60d978a75bb877f5846cf077afe4198adc3f5a3c (patch) | |
tree | 7d70074e4ce3bc3aec9d53f7ae6a48ea28908636 /sbin/route/route.c | |
parent | 66e5857b4212578d42c7240e8c265d5b5e6b92e7 (diff) | |
download | src-test2-60d978a75bb877f5846cf077afe4198adc3f5a3c.tar.gz src-test2-60d978a75bb877f5846cf077afe4198adc3f5a3c.zip |
Notes
Diffstat (limited to 'sbin/route/route.c')
-rw-r--r-- | sbin/route/route.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 1bce41ef4298..a357a4d03851 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1222,6 +1222,9 @@ getaddr(int idx, char *str, struct hostent **hpp, int nrflags) freeifaddrs(ifap); if (sdl != NULL) return(1); + else + errx(EX_DATAERR, + "interface '%s' does not exist", str); } break; case RTAX_IFP: |