diff --git a/pathd/path_ted.c b/pathd/path_ted.c index 270c664daf..7afa1468a1 100644 --- a/pathd/path_ted.c +++ b/pathd/path_ted.c @@ -385,7 +385,7 @@ DEFUN (no_path_ted, "Disable the TE Database functionality\n") /* clang-format on */ { - if (ted_state_g.enabled) { + if (!ted_state_g.enabled) { PATH_TED_DEBUG("%s: PATHD-TED: OFF -> OFF", __func__); return CMD_SUCCESS; }