diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-11-22 14:27:35 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-11-22 14:27:35 +0100 |
commit | 213c12c4f12101b560d532416788914b9f67399a (patch) | |
tree | 05a58c2098a027a663771fd9fcc23e4d8a63ef15 /common/rfb/CSecurityRSAAES.cxx | |
parent | 895b751c92775f7610869a205d58a0a7c98632e0 (diff) | |
download | tigervnc-213c12c4f12101b560d532416788914b9f67399a.tar.gz tigervnc-213c12c4f12101b560d532416788914b9f67399a.zip |
Change some assertions to exceptions
Diffstat (limited to 'common/rfb/CSecurityRSAAES.cxx')
-rw-r--r-- | common/rfb/CSecurityRSAAES.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/rfb/CSecurityRSAAES.cxx b/common/rfb/CSecurityRSAAES.cxx index 416eaa2d..56e1d702 100644 --- a/common/rfb/CSecurityRSAAES.cxx +++ b/common/rfb/CSecurityRSAAES.cxx @@ -126,7 +126,9 @@ bool CSecurityRSAAES::processMsg() writeCredentials(); return true; } - assert(!"unreachable"); + + throw std::logic_error("Invalid state"); + return false; } |