summaryrefslogtreecommitdiffstats
path: root/freebsd/sbin/route/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sbin/route/route.c')
-rw-r--r--freebsd/sbin/route/route.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/freebsd/sbin/route/route.c b/freebsd/sbin/route/route.c
index 80404d66..10c2f2e9 100644
--- a/freebsd/sbin/route/route.c
+++ b/freebsd/sbin/route/route.c
@@ -1109,10 +1109,13 @@ newroute(int argc, char **argv)
}
printf("\n");
}
+ }
- fibnum = 0;
- TAILQ_FOREACH(fl, &fibl_head, fl_next) {
- if (fl->fl_error != 0) {
+ fibnum = 0;
+ TAILQ_FOREACH(fl, &fibl_head, fl_next) {
+ if (fl->fl_error != 0) {
+ error = 1;
+ if (!qflag) {
printf("%s %s %s", cmd, (nrflags & F_ISHOST)
? "host" : "net", dest);
if (*gateway)
@@ -1146,7 +1149,6 @@ newroute(int argc, char **argv)
break;
}
printf(": %s\n", errmsg);
- error = 1;
}
}
}