]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
replication plugin: Synchronous notification timeout error wasn't logged as intended.
authorTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2014 22:22:23 +0000 (01:22 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 12 Jun 2014 22:22:23 +0000 (01:22 +0300)
Found by Coverity

src/plugins/replication/replication-plugin.c

index 673dec2da225ef04b5201b8826c9c70024c7c5ef..89bce7d49ffface811634f8827c2170f9a358fd9 100644 (file)
@@ -147,7 +147,7 @@ static int replication_notify_sync(struct mail_user *user)
                /* + | - */
                ret = read(fd, buf, sizeof(buf));
                if (ret < 0) {
-                       if (ret != EINTR) {
+                       if (errno != EINTR) {
                                i_error("read(%s) failed: %m",
                                        ruser->socket_path);
                        } else {