Skip to content

Commit

Permalink
Correctly handling rejecting server key
Browse files Browse the repository at this point in the history
This is the user actively rejecting the connection, and should be
signalled as such for correct behaviour.
  • Loading branch information
CendioOssman committed Sep 4, 2024
1 parent 1f3e77d commit 455ad1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/rfb/CSecurityRSAAES.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ void CSecurityRSAAES::verifyServer()
"Please verify that the information is correct and press \"Yes\". "
"Otherwise press \"No\"", f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]);
if (!cc->showMsgBox(MsgBoxFlags::M_YESNO, title, text.c_str()))
throw Exception("server key mismatch");
throw AuthCancelledException();
}

void CSecurityRSAAES::writeRandom()
Expand Down

0 comments on commit 455ad1c

Please sign in to comment.