]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
route: return false for rt_add on failure rather than garbage
authorRoy Marples <roy@marples.name>
Tue, 20 May 2025 19:27:49 +0000 (20:27 +0100)
committerRoy Marples <roy@marples.name>
Tue, 20 May 2025 19:28:08 +0000 (20:28 +0100)
src/route.c

index cf3a70568575d227d4f25a4284c21012e5b4e609..57f9b187935765783f6e2e969b6866ac5ea52358 100644 (file)
@@ -674,6 +674,7 @@ rt_add(rb_tree_t *kroutes, struct rt *nrt, struct rt *ort)
 logerr:
 #endif
        logerr("if_route (ADD)");
+       result = false;
 
 out:
        if (krt != NULL) {