Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9040:533e4829212a HEAD
Dropping connections from sql connection pool could have crashed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 17 May 2009 17:30:58 -0400 |
parents | b58a3ad27c88 |
children | c8d63b42e9cc |
files | src/lib-sql/sql-pool.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-sql/sql-pool.c Sun May 17 17:15:01 2009 -0400 +++ b/src/lib-sql/sql-pool.c Sun May 17 17:30:58 2009 -0400 @@ -61,7 +61,7 @@ if (ctx->next == NULL) ctx->pool->unused_head = ctx->prev; else { - next_ctx = SQL_POOL_CONTEXT(ctx->prev); + next_ctx = SQL_POOL_CONTEXT(ctx->next); next_ctx->prev = ctx->prev; } ctx->pool->unused_count--;