From: Suresh Sundriyal Date: Tue, 12 Apr 2016 13:18:17 +0000 (+0100) Subject: [pool] Fix check for reopenable pooled connections X-Git-Tag: v1.20.1~481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4afb75842314c454980c748586764afb187cef7c;p=thirdparty%2Fipxe.git [pool] Fix check for reopenable pooled connections Signed-off-by: Michael Brown --- 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 ) ) ); }