From: Timo Sirainen Date: Thu, 21 Oct 2010 17:28:10 +0000 (+0100) Subject: dsync: Make sure POP3 UIDL string isn't corrupted while saving it. X-Git-Tag: 2.0.6~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8342ac5d168ac838e339bac089f79c7bfc1278b2;p=thirdparty%2Fdovecot%2Fcore.git dsync: Make sure POP3 UIDL string isn't corrupted while saving it. --- diff --git a/src/dsync/dsync-worker-local.c b/src/dsync/dsync-worker-local.c index a4fafbed25..7c01c4636e 100644 --- a/src/dsync/dsync-worker-local.c +++ b/src/dsync/dsync-worker-local.c @@ -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,