Просмотр исходного кода

Fix logging when no working VeNCrypt types

Otherwise it will log that we chose the (invalid) type 0.
pull/1714/head
Pierre Ossman 5 месяцев назад
Родитель
Сommit
72a2407334
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      common/rfb/CSecurityVeNCrypt.cxx

+ 3
- 3
common/rfb/CSecurityVeNCrypt.cxx Просмотреть файл

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

Загрузка…
Отмена
Сохранить