From: Emeric Brun Date: Wed, 28 Nov 2012 10:41:01 +0000 (+0100) Subject: BUG/MINOR: ssl: One free session in cache remains unused. X-Git-Tag: v1.5-dev15~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78617e51fd6a8972f13b080cfb116d22f25bcee8;p=thirdparty%2Fhaproxy.git BUG/MINOR: ssl: One free session in cache remains unused. --- diff --git a/src/shctx.c b/src/shctx.c index 3375ead6c6..03961b6797 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 */