]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Use the right boolean operator on error check 1947/head
authorMichael McConville <mmcco@mykolab.com>
Tue, 5 Dec 2017 18:36:15 +0000 (11:36 -0700)
committerMichael McConville <mmcco@mykolab.com>
Tue, 5 Dec 2017 18:36:15 +0000 (11:36 -0700)
src/log_helper.c

index 942a536a11ab444e702b0fe630a504b7a274d46c..2635e6099b9e157923f4b06ec994834b78cf5705 100644 (file)
@@ -153,7 +153,7 @@ rspamd_log_helper_read (gint fd, short what, gpointer ud)
                }
        }
        else if (r == -1) {
-               if (errno != EAGAIN || errno != EINTR) {
+               if (errno != EAGAIN && errno != EINTR) {
                        msg_warn ("cannot read data from log pipe: %s", strerror (errno));
                        event_del (&ctx->log_ev);
                }