From: Timo Sirainen Date: Fri, 29 Nov 2019 13:58:59 +0000 (+0200) Subject: fs-sis: Don't overwrite error already set by fs_sis_path_parse() X-Git-Tag: 2.3.10~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54bcd1e5d2bb9e44381f622d46417324955ab032;p=thirdparty%2Fdovecot%2Fcore.git fs-sis: Don't overwrite error already set by fs_sis_path_parse() --- diff --git a/src/lib-fs/fs-sis.c b/src/lib-fs/fs-sis.c index 6a72e3df53..3b07223222 100644 --- a/src/lib-fs/fs-sis.c +++ b/src/lib-fs/fs-sis.c @@ -97,10 +97,8 @@ fs_sis_file_init(struct fs_file *_file, const char *path, return; } - if (fs_sis_path_parse(_file, path, &dir, &hash) < 0) { - fs_set_error(_file->fs, "Invalid path"); + if (fs_sis_path_parse(_file, path, &dir, &hash) < 0) return; - } /* if hashes/ already exists, open it */ file->hash_path = i_strdup_printf("%s/"HASH_DIR_NAME"/%s", dir, hash);