summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorSuresh Sundriyal2016-04-12 15:18:17 +0200
committerMichael Brown2016-04-12 15:18:17 +0200
commit4afb75842314c454980c748586764afb187cef7c (patch)
tree4875c7b4229f2a203f6ee68b850a1617023dd372 /src/include
parent[golan] Add missing iounmap() (diff)
downloadipxe-4afb75842314c454980c748586764afb187cef7c.tar.gz
ipxe-4afb75842314c454980c748586764afb187cef7c.tar.xz
ipxe-4afb75842314c454980c748586764afb187cef7c.zip
[pool] Fix check for reopenable pooled connections
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/ipxe/pool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/pool.h b/src/include/ipxe/pool.h
index 27066e9b3..81ff57d75 100644
--- a/src/include/ipxe/pool.h
+++ b/src/include/ipxe/pool.h
@@ -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 ) ) );
}