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:
parent
aa1b44ca77
commit
8be2955816
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue