]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: One free session in cache remains unused.
authorEmeric Brun <ebrun@exceliance.fr>
Wed, 28 Nov 2012 10:41:01 +0000 (11:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Dec 2012 18:39:40 +0000 (19:39 +0100)
src/shctx.c

index 3375ead6c6c9a8ec278fd75f928965f9ccb40da3..03961b679799da75fa03fcef3791ea1a1a41ffc8 100644 (file)
@@ -173,7 +173,7 @@ static inline void _shared_context_unlock(void)
                                shctx->active.n = s;
 
 
-#define shsess_get_next()      (shctx->free.p == shctx->free.n) ? \
+#define shsess_get_next()      (shctx->free.p == &shctx->free) ? \
                                     shctx->active.p : shctx->free.p;
 
 /* Tree Macros */