dovecot-2.1: stats: Freeing a user didn't remove it from hash ta...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Nov 15 17:40:36 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/c8076e71c849
changeset: 13696:c8076e71c849
user: Timo Sirainen <tss at iki.fi>
date: Tue Nov 15 17:40:13 2011 +0200
description:
stats: Freeing a user didn't remove it from hash table, leading to crash later.
diffstat:
src/stats/mail-user.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 3c5d3d618c76 -r c8076e71c849 src/stats/mail-user.c
--- a/src/stats/mail-user.c Tue Nov 15 00:34:00 2011 +0200
+++ b/src/stats/mail-user.c Tue Nov 15 17:40:13 2011 +0200
@@ -85,6 +85,7 @@
i_assert(user->sessions == NULL);
global_memory_free(mail_user_memsize(user));
+ hash_table_remove(mail_users_hash, user->name);
DLLIST_REMOVE_FULL(&stable_mail_users, user,
stable_prev, stable_next);
DLLIST2_REMOVE_FULL(&mail_users_head, &mail_users_tail, user,
More information about the dovecot-cvs
mailing list