]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If there's no limit in stream, don't fail with "unexpected EOF".
authorTimo Sirainen <tss@iki.fi>
Sat, 17 May 2003 09:16:16 +0000 (12:16 +0300)
committerTimo Sirainen <tss@iki.fi>
Sat, 17 May 2003 09:16:16 +0000 (12:16 +0300)
--HG--
branch : HEAD

src/lib-storage/mail-save.c

index b3199555fd25d12dee25f036f174918219681af3..c685b97750ecff939ce314e822704f4b784db7a3 100644 (file)
@@ -167,7 +167,8 @@ int mail_storage_save(struct mail_storage *storage, const char *path,
                        errno = input->stream_errno;
                        if (errno == 0) {
                                /* EOF */
-                               if (input->v_offset != input->v_limit) {
+                               if (input->v_offset != input->v_limit &&
+                                   input->v_limit != 0) {
                                        /* too early */
                                        mail_storage_set_error(storage,
                                                "Unexpected EOF");