dovecot-1.2: Dropping connections from sql connection pool could...
dovecot at dovecot.org
dovecot at dovecot.org
Mon May 18 00:31:04 EEST 2009
details: http://hg.dovecot.org/dovecot-1.2/rev/533e4829212a
changeset: 9040:533e4829212a
user: Timo Sirainen <tss at iki.fi>
date: Sun May 17 17:30:58 2009 -0400
description:
Dropping connections from sql connection pool could have crashed.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-sql/sql-pool.c | 2 +-
diffs (12 lines):
diff -r b58a3ad27c88 -r 533e4829212a src/lib-sql/sql-pool.c
--- 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 @@ static void sql_pool_unlink(struct sql_p
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--;
More information about the dovecot-cvs
mailing list