Commit 124c7848 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Add missing return

parent ce9667c4
......@@ -353,6 +353,7 @@ int APIDownstreamConnection::handle_backendconfig() {
auto rp = mmap(nullptr, req.recv_body_length, PROT_READ, MAP_SHARED, fd_, 0);
if (rp == reinterpret_cast<void *>(-1)) {
send_reply(500, APIStatusCode::FAILURE);
return 0;
}
auto unmapper = defer(munmap, rp, req.recv_body_length);
......
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