[dovecot-cvs] dovecot/src/lib-index/mbox mbox-index.c,1.39,1.40
cras at procontrol.fi
cras at procontrol.fi
Fri Oct 25 07:29:56 EEST 2002
Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv364
Modified Files:
mbox-index.c
Log Message:
If Content-Length header was invalid, we didn't fix it properly.
Index: mbox-index.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-index.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- mbox-index.c 25 Oct 2002 02:31:19 -0000 1.39
+++ mbox-index.c 25 Oct 2002 03:29:53 -0000 1.40
@@ -198,6 +198,8 @@
end_offset = start_offset + ctx->content_length;
if (ctx->content_length == 0 ||
!mbox_verify_end_of_body(ctx->inbuf, end_offset)) {
+ if (ctx->content_length != 0)
+ i_buffer_seek(ctx->inbuf, start_offset);
mbox_skip_message(ctx->inbuf);
end_offset = ctx->inbuf->v_offset;
ctx->content_length = end_offset - start_offset;
More information about the dovecot-cvs
mailing list