]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Fixed IPv6 address handling for parsing v1.x style listen/ssl_listen settings.
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Jul 2012 05:06:19 +0000 (08:06 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Jul 2012 05:06:19 +0000 (08:06 +0300)
src/config/old-set-parser.c

index 674e5f4021cbbac1a00688123ce8ef3ce4080b5e..0f3e2d4f7d7abe7e6d382544b75f5baf2b3327f1 100644 (file)
@@ -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)) {