fixed error-handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@503 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.2
parent
5e134da075
commit
dee5efa0e2
|
@ -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)) {
|
||||
|
|
|
@ -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…
Reference in New Issue