From: Timo Sirainen Date: Tue, 1 Jun 2010 17:37:37 +0000 (+0100) Subject: config: Fixed handling obsolete [ipv6addr]:port listen setting. X-Git-Tag: 2.0.beta6~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9accc087160a4a485df40276daf7f6d1aa23d9b6;p=thirdparty%2Fdovecot%2Fcore.git config: Fixed handling obsolete [ipv6addr]:port listen setting. --HG-- branch : HEAD --- diff --git a/src/config/old-set-parser.c b/src/config/old-set-parser.c index 16cba0dc07..8095e89f01 100644 --- a/src/config/old-set-parser.c +++ b/src/config/old-set-parser.c @@ -245,7 +245,7 @@ old_settings_handle_proto(struct config_parser_context *ctx, /* default */ return TRUE; } - p = strchr(value, ':'); + p = strrchr(value, ':'); if (p != NULL) { obsolete(ctx, "%s=..:port has been replaced by service { inet_listener { port } }", key); value = t_strdup_until(value, p++);