dovecot-1.3: mail_user_alloc() now duplicates also the unexpande...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 13 19:38:11 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.3/rev/31389897ca8c
changeset: 9084:31389897ca8c
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 13 12:38:05 2009 -0400
description:
mail_user_alloc() now duplicates also the unexpanded_set input settings.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/mail-user.c |    3 ++-

diffs (13 lines):

diff -r e2f48d895420 -r 31389897ca8c src/lib-storage/mail-user.c
--- a/src/lib-storage/mail-user.c	Mon Apr 13 12:36:34 2009 -0400
+++ b/src/lib-storage/mail-user.c	Mon Apr 13 12:38:05 2009 -0400
@@ -41,7 +41,8 @@ struct mail_user *mail_user_alloc(const 
 	user->pool = pool;
 	user->refcount = 1;
 	user->username = p_strdup(pool, username);
-	user->unexpanded_set = set;
+	user->unexpanded_set =
+		settings_dup(&mail_user_setting_parser_info, set, pool);
 	user->set = settings_dup(&mail_user_setting_parser_info, set, pool);
 	user->v.deinit = mail_user_deinit_base;
 	p_array_init(&user->module_contexts, user->pool, 5);


More information about the dovecot-cvs mailing list