Przeglądaj źródła

[pool] Fix check for reopenable pooled connections

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Suresh Sundriyal 8 lat temu
rodzic
commit
4afb758423
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      src/include/ipxe/pool.h

+ 1
- 1
src/include/ipxe/pool.h Wyświetl plik

@@ -112,7 +112,7 @@ pool_is_reopenable ( struct pooled_connection *pool ) {
112 112
 	/* A connection is reopenable if it has been recycled but is
113 113
 	 * not yet known to be alive.
114 114
 	 */
115
-	return ( ( pool->flags & POOL_RECYCLED ) &
115
+	return ( ( pool->flags & POOL_RECYCLED ) &&
116 116
 		 ( ! ( pool->flags & POOL_ALIVE ) ) );
117 117
 }
118 118
 

Ładowanie…
Anuluj
Zapisz