diff options
author | Michael McConville <mmcco@mykolab.com> | 2017-12-05 11:36:15 -0700 |
---|---|---|
committer | Michael McConville <mmcco@mykolab.com> | 2017-12-05 11:36:15 -0700 |
commit | 8e7733b66355fe48e4c8e468ac582fbd99356a93 (patch) | |
tree | cebeecdb0b1b5248db04371b378f076bfed98004 /src/log_helper.c | |
parent | 48ffe66c9aa764a691c416edb0f52a514397166b (diff) | |
download | rspamd-8e7733b66355fe48e4c8e468ac582fbd99356a93.tar.gz rspamd-8e7733b66355fe48e4c8e468ac582fbd99356a93.zip |
[Fix] Use the right boolean operator on error check
Diffstat (limited to 'src/log_helper.c')
-rw-r--r-- | src/log_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |