Commit c81e87bf authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Fix dereference after null check

parent 97533c96
......@@ -204,6 +204,7 @@ FILE* open_file_for_write(const char *filename)
if(f == nullptr) {
LOG(ERROR) << "Failed to open " << filename << " for writing. Cause: "
<< strerror(errno);
return nullptr;
}
evutil_make_socket_closeonexec(fileno(f));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment