From: Michael McConville Date: Tue, 5 Dec 2017 18:36:15 +0000 (-0700) Subject: [Fix] Use the right boolean operator on error check X-Git-Tag: 1.7.0~370^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e7733b66355fe48e4c8e468ac582fbd99356a93;p=rspamd.git [Fix] Use the right boolean operator on error check --- diff --git a/src/log_helper.c b/src/log_helper.c index 942a536a1..2635e6099 100644 --- a/src/log_helper.c +++ b/src/log_helper.c @@ -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); }