From dee5efa0e2d64a1802d7a051fa5e8fc3691f8b1e Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Mon, 8 Aug 2005 08:59:19 +0000 Subject: [PATCH] fixed error-handling git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@503 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_evhost.c | 2 +- src/mod_simple_vhost.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;