nghttpx: Add missing return

This commit is contained in:
Tatsuhiro Tsujikawa 2018-12-11 22:52:34 +09:00
parent ce9667c4f5
commit 124c7848c0
1 changed files with 1 additions and 0 deletions

View File

@ -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);