if (FAILED(errorCode))
{
WLog_ERR(TAG, "Handshake error %s", error);
+ freerdp_set_last_error(rdg->context, errorCode);
return FALSE;
}
if (FAILED(errorCode))
{
WLog_ERR(TAG, "Tunnel creation error %s", error);
+ freerdp_set_last_error(rdg->context, errorCode);
return FALSE;
}
if (FAILED(errorCode))
{
WLog_ERR(TAG, "Tunnel authorization error %s", error);
+ freerdp_set_last_error(rdg->context, errorCode);
return FALSE;
}
{
WLog_ERR(TAG, "channel response errorCode=%s, fieldsPresent=%s",
error, channel_response_fields_present_to_string(fieldsPresent));
+ freerdp_set_last_error(rdg->context, errorCode);
return FALSE;
}
if (!transport->tsg)
return FALSE;
+ /* Reset error condition from RDG */
+ freerdp_set_last_error(context, FREERDP_ERROR_SUCCESS);
status = tsg_connect(transport->tsg, hostname, port, timeout);
if (status)