[mod_deflate] fix potential NULL deref in err case

(bug on master branch; never released)
personal/stbuehler/tests-path
Glenn Strauss 2020-10-09 08:47:34 -04:00
parent 4d6d1e790a
commit e2c832122b
1 changed files with 1 additions and 1 deletions

View File

@ -1551,7 +1551,7 @@ REQUEST_FUNC(mod_deflate_handle_response_start) {
sce = stat_cache_get_entry(r->write_queue.first->mem);
if (NULL == sce || sce->st.st_size != len)
tb = NULL;
if (0 != mkdir_for_file(tb->ptr))
else if (0 != mkdir_for_file(tb->ptr))
tb = NULL;
}