]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Fixed handling obsolete [ipv6addr]:port listen setting.
authorTimo Sirainen <tss@iki.fi>
Tue, 1 Jun 2010 17:37:37 +0000 (18:37 +0100)
committerTimo Sirainen <tss@iki.fi>
Tue, 1 Jun 2010 17:37:37 +0000 (18:37 +0100)
--HG--
branch : HEAD

src/config/old-set-parser.c

index 16cba0dc0796a6ec7f5a05f52499ba11a6cb77d6..8095e89f011e3ce7fbd41f1a555c4a6e3f5bab7c 100644 (file)
@@ -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++);