Browse Source

Fix logging when no working VeNCrypt types

Otherwise it will log that we chose the (invalid) type 0.
pull/1714/head
Pierre Ossman 4 months ago
parent
commit
72a2407334
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      common/rfb/CSecurityVeNCrypt.cxx

+ 3
- 3
common/rfb/CSecurityVeNCrypt.cxx View File

@@ -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 */

Loading…
Cancel
Save