From 3f780bf67ec3047194ab89e2ec1ffc8da8698775 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 2 Jul 2012 08:06:19 +0300 Subject: [PATCH] config: Fixed IPv6 address handling for parsing v1.x style listen/ssl_listen settings. --- src/config/old-set-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.47.3