Skip to content

Commit 6851f33

Browse files
committed
route: return false for rt_add on failure rather than garbage
1 parent e20185b commit 6851f33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/route.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ rt_add(rb_tree_t *kroutes, struct rt *nrt, struct rt *ort)
674674
logerr:
675675
#endif
676676
logerr("if_route (ADD)");
677+
result = false;
677678

678679
out:
679680
if (krt != NULL) {

0 commit comments

Comments
 (0)