]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Make sure POP3 UIDL string isn't corrupted while saving it.
authorTimo Sirainen <tss@iki.fi>
Thu, 21 Oct 2010 17:28:10 +0000 (18:28 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 21 Oct 2010 17:28:10 +0000 (18:28 +0100)
src/dsync/dsync-worker-local.c

index a4fafbed25b9d69f4da1d733ced73cc7e370a3b1..7c01c4636eb6027ade3be89ef5749bc2d8091f49 100644 (file)
@@ -1806,6 +1806,7 @@ local_worker_msg_get_next(struct local_dsync_worker *worker,
                              DSYNC_MSG_GET_RESULT_FAILED, NULL, get->context);
        } else {
                worker->reading_mail = TRUE;
+               data.pop3_uidl = t_strdup(data.pop3_uidl);
                data.input = i_stream_create_limit(data.input, (uoff_t)-1);
                i_stream_set_destroy_callback(data.input,
                                              local_worker_msg_get_done,