Skip to content

Commit

Permalink
Merge pull request #4631 from rgacogne/auth-34-off-by-one-http-remote
Browse files Browse the repository at this point in the history
Backport #4544: auth: Fix a stack-based off-by-one write in the HTTP remote backend
  • Loading branch information
Habbie committed Nov 11, 2016
2 parents 118fc10 + a6292e6 commit f3ff169
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/remotebackend/httpconnector.cc
Expand Up @@ -394,7 +394,6 @@ int HTTPConnector::recv_message(rapidjson::Document &output) {
throw NetworkError("EOF while reading");
if (rd<0)
throw NetworkError(std::string(strerror(rd)));
buffer[rd] = 0;
arl.feed(std::string(buffer, rd));
}
// timeout occured.
Expand Down

0 comments on commit f3ff169

Please sign in to comment.