diff src/lda/main.c @ 12253:c4f91b9acb01

lda: -m parameter's UTF-8 validity wasn't checked correctly. Found by Vadim Okun
author Timo Sirainen <tss@iki.fi>
date Wed, 06 Oct 2010 18:57:38 +0100
parents 002a702cf06a
children fd44ba1fa729
line wrap: on
line diff
--- a/src/lda/main.c	Wed Oct 06 18:57:16 2010 +0100
+++ b/src/lda/main.c	Wed Oct 06 18:57:38 2010 +0100
@@ -284,7 +284,7 @@
 			   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);
 				}