aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/src/objects/route.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/libhicnctrl/src/objects/route.c')
-rw-r--r--ctrl/libhicnctrl/src/objects/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctrl/libhicnctrl/src/objects/route.c b/ctrl/libhicnctrl/src/objects/route.c
index 44f39bcd7..f2d0636a7 100644
--- a/ctrl/libhicnctrl/src/objects/route.c
+++ b/ctrl/libhicnctrl/src/objects/route.c
@@ -83,7 +83,7 @@ int hc_route_validate(const hc_route_t *route, bool allow_partial) {
}
if (hc_route_has_face(route)) {
- if (!hc_face_validate(&route->face, allow_partial)) {
+ if (hc_face_validate(&route->face, allow_partial) < 0) {
ERROR("[hc_route_validate] Invalid face");
return -1;
}