From: Timo Sirainen Date: Mon, 12 Jul 2010 14:30:55 +0000 (+0100) Subject: dsync: Log an error if dsync server sends invalid reply for FINISH. X-Git-Tag: 2.0.rc3~74 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4697f91b98430071f3775b22a7bac8b640f67c92;p=thirdparty%2Fdovecot%2Fcore.git dsync: Log an error if dsync server sends invalid reply for FINISH. --- diff --git a/src/dsync/dsync-proxy-client.c b/src/dsync/dsync-proxy-client.c index 260e4e9c7c..0384bbc64f 100644 --- a/src/dsync/dsync-proxy-client.c +++ b/src/dsync/dsync-proxy-client.c @@ -249,8 +249,12 @@ proxy_client_worker_next_finish(struct proxy_client_dsync_worker *worker, if (strcmp(line, "changes") == 0) worker->worker.unexpected_changes = TRUE; - else if (strcmp(line, "ok") != 0) + else if (strcmp(line, "fail") == 0) success = FALSE; + else if (strcmp(line, "ok") != 0) { + i_error("Unexpected finish reply: %s", line); + success = FALSE; + } request->callback.finish(success, request->context); }