]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[pool] Fix check for reopenable pooled connections
authorSuresh Sundriyal <ssundriy@vmware.com>
Tue, 12 Apr 2016 13:18:17 +0000 (14:18 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 12 Apr 2016 13:18:17 +0000 (14:18 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/pool.h

index 27066e9b38c099d73c91311f2f64bc1b5c53cb30..81ff57d75f75f66decb7041ae83644cec9f7d099 100644 (file)
@@ -112,7 +112,7 @@ pool_is_reopenable ( struct pooled_connection *pool ) {
        /* A connection is reopenable if it has been recycled but is
         * not yet known to be alive.
         */
-       return ( ( pool->flags & POOL_RECYCLED ) &
+       return ( ( pool->flags & POOL_RECYCLED ) &&
                 ( ! ( pool->flags & POOL_ALIVE ) ) );
 }