Skip to content

Commit

Permalink
Fix logging when no working VeNCrypt types
Browse files Browse the repository at this point in the history
Otherwise it will log that we chose the (invalid) type 0.
  • Loading branch information
CendioOssman committed Dec 12, 2023
1 parent 9cff04c commit 72a2407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/rfb/CSecurityVeNCrypt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ bool CSecurityVeNCrypt::processMsg()
break;
}

vlog.info("Choosing security type %s (%d)", secTypeName(chosenType),
chosenType);

/* Set up the stack according to the chosen type: */
if (chosenType == secTypeInvalid || chosenType == secTypeVeNCrypt)
throw AuthFailureException("No valid VeNCrypt sub-type");

vlog.info("Choosing security type %s (%d)", secTypeName(chosenType),
chosenType);

csecurity = security->GetCSecurity(cc, chosenType);

/* send chosen type to server */
Expand Down

0 comments on commit 72a2407

Please sign in to comment.