[libmultipath] fix pathcount wildcard
authorChristophe Varoqui <root@xa-s05.(none)>
Thu, 17 Nov 2005 16:49:13 +0000 (17:49 +0100)
committerChristophe Varoqui <root@xa-s05.(none)>
Thu, 17 Nov 2005 16:49:13 +0000 (17:49 +0100)
libmultipath/structs.c

index 960d89b..627c757 100644 (file)
@@ -311,7 +311,7 @@ pathcount (struct multipath * mpp, int state)
 
        vector_foreach_slot (mpp->pg, pgp, i)
                vector_foreach_slot (pgp->paths, pp, j)
-                       if ((pp->state == state) || (state == PATH_WILD))
+                       if ((pp->state == state) || (state < 0))
                                count++;
 
        return count;