fix(CVE-2021-42075): Close connection on app-level handshake failure
based on barrier: debauchee/barrier@deefecc
This commit is contained in:
parent
cb638f4712
commit
937ac053fe
1 changed files with 5 additions and 0 deletions
|
|
@ -208,6 +208,11 @@ void ClientListener::handleUnknownClient(const Event &, void *vclient)
|
||||||
m_events->forClientProxy().disconnected(), client,
|
m_events->forClientProxy().disconnected(), client,
|
||||||
new TMethodEventJob<ClientListener>(this, &ClientListener::handleClientDisconnected, client)
|
new TMethodEventJob<ClientListener>(this, &ClientListener::handleClientDisconnected, client)
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
auto *stream = unknownClient->getStream();
|
||||||
|
if (stream) {
|
||||||
|
stream->close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// now finished with unknown client
|
// now finished with unknown client
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue