diff --git a/src/mod_evhost.c b/src/mod_evhost.c index 3e92c3d6..ca89425f 100644 --- a/src/mod_evhost.c +++ b/src/mod_evhost.c @@ -310,7 +310,7 @@ static handler_t mod_evhost_uri_handler(server *srv, connection *con, void *p_d) array_free(parsed_host); - if (HANDLER_ERROR != stat_cache_get_entry(srv, con, p->tmp_buf, &sce)) { + if (HANDLER_ERROR == stat_cache_get_entry(srv, con, p->tmp_buf, &sce)) { log_error_write(srv, __FILE__, __LINE__, "sb", strerror(errno), p->tmp_buf); not_good = 1; } else if(!S_ISDIR(sce->st.st_mode)) { diff --git a/src/mod_simple_vhost.c b/src/mod_simple_vhost.c index bd6d9049..260901c5 100644 --- a/src/mod_simple_vhost.c +++ b/src/mod_simple_vhost.c @@ -153,7 +153,7 @@ static int build_doc_root(server *srv, connection *con, plugin_data *p, buffer * BUFFER_APPEND_SLASH(out); } - if (HANDLER_ERROR != stat_cache_get_entry(srv, con, out, &sce)) { + if (HANDLER_ERROR == stat_cache_get_entry(srv, con, out, &sce)) { log_error_write(srv, __FILE__, __LINE__, "sb", strerror(errno), out); return -1;