Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9407:a3e16df805e3 HEAD
master: Config file parsing fixes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 05 Oct 2009 11:59:43 -0400 |
parents | 2d4d9b0cdcc1 |
children | 0c7bbdd7b81f |
files | src/master/master-settings.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ } } else { ctx->type = SETTINGS_TYPE_ROOT; + ctx->protocol = MAIL_PROTOCOL_ANY; ctx->server = ctx->root; ctx->auth = &ctx->root->auth_defaults; ctx->namespace = NULL;