dovecot-2.0: mail storage service: When duping settings, they ne...

dovecot at dovecot.org dovecot at dovecot.org
Wed Dec 16 21:24:42 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/2f554f19adb5
changeset: 10506:2f554f19adb5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Dec 16 14:24:36 2009 -0500
description:
mail storage service: When duping settings, they need to be also checked.
The checking part may also parse some settings and store data to the
structures.

diffstat:

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

diffs (13 lines):

diff -r 482d43792090 -r 2f554f19adb5 src/lib-storage/mail-storage-service.c
--- a/src/lib-storage/mail-storage-service.c	Wed Dec 16 14:13:09 2009 -0500
+++ b/src/lib-storage/mail-storage-service.c	Wed Dec 16 14:24:36 2009 -0500
@@ -727,6 +727,9 @@ int mail_storage_service_lookup(struct m
 
 	user->set_parser =
 		settings_parser_dup(ctx->service->set_parser, user_pool);
+	if (!settings_parser_check(user->set_parser, user_pool, error_r))
+		i_unreached();
+
 	sets = settings_parser_get_list(user->set_parser);
 	user->user_set = sets[1];
 


More information about the dovecot-cvs mailing list