From: Timo Sirainen Date: Mon, 2 Jul 2012 05:06:19 +0000 (+0300) Subject: config: Fixed IPv6 address handling for parsing v1.x style listen/ssl_listen settings. X-Git-Tag: 2.1.8~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f780bf67ec3047194ab89e2ec1ffc8da8698775;p=thirdparty%2Fdovecot%2Fcore.git config: Fixed IPv6 address handling for parsing v1.x style listen/ssl_listen settings. --- diff --git a/src/config/old-set-parser.c b/src/config/old-set-parser.c index 674e5f4021..0f3e2d4f7d 100644 --- a/src/config/old-set-parser.c +++ b/src/config/old-set-parser.c @@ -305,7 +305,7 @@ old_settings_handle_proto(struct config_parser_context *ctx, return TRUE; } p = strrchr(value, ':'); - if (p != NULL) { + if (p != NULL && listen_has_port(value)) { obsolete(ctx, "%s=..:port has been replaced by service { inet_listener { port } }", key); value = t_strdup_until(value, p++); if (config_filter_match(&old_section->filter, &imap_filter)) {