diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-08-13 15:31:05 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-08-13 15:31:05 +0200 |
commit | bcaaea74a94502d6beabf9ea974dfbcdcf458883 (patch) | |
tree | e5fb28a635bd211a115432db3e5d8ebf3ba7f749 /common/rfb/CSecurityRSAAES.cxx | |
parent | 10c359eb0b84887e06a6212e4673d15c983904c0 (diff) | |
download | tigervnc-bcaaea74a94502d6beabf9ea974dfbcdcf458883.tar.gz tigervnc-bcaaea74a94502d6beabf9ea974dfbcdcf458883.zip |
Avoid connection failed exception
The usage of this is unclear as it is never caught. Use the general
exception class, to stay consistent with all other protocol handling.
Diffstat (limited to 'common/rfb/CSecurityRSAAES.cxx')
-rw-r--r-- | common/rfb/CSecurityRSAAES.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/CSecurityRSAAES.cxx b/common/rfb/CSecurityRSAAES.cxx index 9b418c64..a78739ac 100644 --- a/common/rfb/CSecurityRSAAES.cxx +++ b/common/rfb/CSecurityRSAAES.cxx @@ -135,7 +135,7 @@ static void random_func(void* ctx, size_t length, uint8_t* dst) { rdr::RandomStream* rs = (rdr::RandomStream*)ctx; if (!rs->hasData(length)) - throw ConnFailedException("failed to generate random"); + throw Exception("failed to generate random"); rs->readBytes(dst, length); } @@ -223,7 +223,7 @@ void CSecurityRSAAES::writeRandom() { rdr::OutStream* os = cc->getOutStream(); if (!rs.hasData(keySize / 8)) - throw ConnFailedException("failed to generate random"); + throw Exception("failed to generate random"); rs.readBytes(clientRandom, keySize / 8); mpz_t x; mpz_init(x); |