]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lda: -m parameter's UTF-8 validity wasn't checked correctly.
authorTimo Sirainen <tss@iki.fi>
Wed, 6 Oct 2010 17:57:38 +0000 (18:57 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 6 Oct 2010 17:57:38 +0000 (18:57 +0100)
Found by Vadim Okun

src/lda/main.c

index e0fb8c5cec36cfeedcfee76d5b9eed715e700a24..66cd33a6a9de0baa88416c114e6621105e7f70de 100644 (file)
@@ -284,7 +284,7 @@ int main(int argc, char *argv[])
                           Ignore -m "". This allows doing -m ${extension}
                           in Postfix to handle user+mailbox */
                        if (*optarg != '\0') T_BEGIN {
-                               if (uni_utf8_str_is_valid(optarg) < 0) {
+                               if (!uni_utf8_str_is_valid(optarg)) {
                                        i_fatal("Mailbox name not UTF-8: %s",
                                                optarg);
                                }