Browse Source

fixed error-handling

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@503 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.2
Jan Kneschke 17 years ago
parent
commit
dee5efa0e2
  1. 2
      src/mod_evhost.c
  2. 2
      src/mod_simple_vhost.c

2
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)) {

2
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;

Loading…
Cancel
Save