Otherwise it will log that we chose the (invalid) type 0.pull/1714/head
@@ -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 */ |