simplify error check

This commit is contained in:
Omar Polo 2021-10-02 17:20:10 +00:00
parent c016b65ca9
commit 5f37f9c20d
1 changed files with 3 additions and 4 deletions

7
fcgi.c
View File

@ -428,10 +428,9 @@ fcgi_error(struct bufferevent *bev, short err, void *d)
struct client *c;
size_t i;
if (!(err & EVBUFFER_ERROR) ||
!(err & EVBUFFER_EOF))
log_warn(NULL, "unknown event error (%x)",
err);
if (!(err & (EVBUFFER_ERROR|EVBUFFER_EOF)))
log_warn(NULL, "unknown event error (%x): %s",
err, strerror(errno));
for (i = 0; i < MAX_USERS; ++i) {
c = &clients[i];