From 78617e51fd6a8972f13b080cfb116d22f25bcee8 Mon Sep 17 00:00:00 2001 From: Emeric Brun Date: Wed, 28 Nov 2012 11:41:01 +0100 Subject: [PATCH] BUG/MINOR: ssl: One free session in cache remains unused. --- src/shctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shctx.c b/src/shctx.c index 3375ead6c..03961b679 100644 --- a/src/shctx.c +++ b/src/shctx.c @@ -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 */