소스 검색

[pool] Fix check for reopenable pooled connections

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Suresh Sundriyal 10 년 전
부모
커밋
4afb758423
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      src/include/ipxe/pool.h

+ 1
- 1
src/include/ipxe/pool.h 파일 보기

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

Loading…
취소
저장