dovecot-1.2: master: Config file parsing fixes.

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 5 18:59:52 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/a3e16df805e3
changeset: 9407:a3e16df805e3
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Oct 05 11:59:43 2009 -0400
description:
master: Config file parsing fixes.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/master/master-settings.c |    4 ++--

diffs (22 lines):

diff -r 2d4d9b0cdcc1 -r a3e16df805e3 src/master/master-settings.c
--- a/src/master/master-settings.c	Mon Oct 05 10:46:47 2009 -0400
+++ b/src/master/master-settings.c	Mon Oct 05 11:59:43 2009 -0400
@@ -1359,9 +1359,8 @@ static bool parse_section(const char *ty
 
 	if (type == NULL) {
 		/* section closing */
-		if (ctx->level-- > 0) {
+		if (--ctx->level > 0) {
 			ctx->type = ctx->parent_type;
-			ctx->protocol = MAIL_PROTOCOL_ANY;
 
 			switch (ctx->type) {
 			case SETTINGS_TYPE_AUTH_SOCKET:
@@ -1373,6 +1372,7 @@ static bool parse_section(const char *ty
 			}
 		} else {
 			ctx->type = SETTINGS_TYPE_ROOT;
+			ctx->protocol = MAIL_PROTOCOL_ANY;
 			ctx->server = ctx->root;
 			ctx->auth = &ctx->root->auth_defaults;
 			ctx->namespace = NULL;


More information about the dovecot-cvs mailing list