fix(CVE-2021-42075): Close connection on app-level handshake failure
based on barrier: debauchee/barrier@deefecc
This commit is contained in:
committed by
Nick Bolton
parent
cb638f4712
commit
937ac053fe
@ -208,6 +208,11 @@ void ClientListener::handleUnknownClient(const Event &, void *vclient)
|
||||
m_events->forClientProxy().disconnected(), client,
|
||||
new TMethodEventJob<ClientListener>(this, &ClientListener::handleClientDisconnected, client)
|
||||
);
|
||||
} else {
|
||||
auto *stream = unknownClient->getStream();
|
||||
if (stream) {
|
||||
stream->close();
|
||||
}
|
||||
}
|
||||
|
||||
// now finished with unknown client
|
||||
|
||||
Reference in New Issue
Block a user