If check_path_state() returns PATH_WILD or PATH_UNCHECKED, then the
path wasn't correctly checked, and path_check() should return 0.

Signed-off-by: Benjamin Marzinski <[email protected]>
---
 multipathd/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index 5e89fae5..43bd5936 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -2386,7 +2386,7 @@ check_path (struct vectors * vecs, struct path * pp, 
unsigned int ticks)
 
        newstate = check_path_state(pp);
        if (newstate == PATH_WILD || newstate == PATH_UNCHECKED) {
-               return 1;
+               return 0;
        } else if ((newstate != PATH_UP && newstate != PATH_GHOST &&
                    newstate != PATH_PENDING) && (pp->state == PATH_DELAYED)) {
                /* If path state become failed again cancel path delay state */
-- 
2.45.0


Reply via email to