]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Don't crash if -c points to nonexisting file.
authorTimo Sirainen <tss@iki.fi>
Thu, 13 May 2010 10:47:24 +0000 (12:47 +0200)
committerTimo Sirainen <tss@iki.fi>
Thu, 13 May 2010 10:47:24 +0000 (12:47 +0200)
--HG--
branch : HEAD

src/config/doveconf.c

index bc14f12d965ed5a2ec78aa71880061d6897ac700..8129e8ec484d71b014f4d57db8eceac307046c37 100644 (file)
@@ -555,7 +555,7 @@ int main(int argc, char *argv[])
                        error);
        }
 
-       if (ret <= 0 && (exec_args != NULL || ret == -2))
+       if ((ret == -1 && exec_args != NULL) || ret == 0 || ret == -2)
                i_fatal("%s", error);
 
        if (setting_name_filter != NULL) {