iproute2: avoid exit in case of error.

Be consistent with how non-0 print_route() return values are handled
elesewhere: return -1.
This commit is contained in:
david decotigny 2016-11-11 10:55:36 -08:00 committed by Stephen Hemminger
parent aa1b44ca77
commit 8be2955816
1 changed files with 1 additions and 1 deletions

View File

@ -1743,7 +1743,7 @@ static int iproute_get(int argc, char **argv)
if (print_route(NULL, &req.n, (void *)stdout) < 0) {
fprintf(stderr, "An error :-)\n");
exit(1);
return -1;
}
if (req.n.nlmsg_type != RTM_NEWROUTE) {