GUACAMOLE-1122: Correct scope of settings variable for RDP user file handler."

This commit is contained in:
Nick Couchman 2020-07-02 16:50:04 -04:00
parent c10ceab7e8
commit d35a97d28e

View File

@ -127,9 +127,9 @@ int guac_rdp_user_file_handler(guac_user* user, guac_stream* stream,
char* mimetype, char* filename) {
guac_rdp_client* rdp_client = (guac_rdp_client*) user->client->data;
guac_rdp_settings* settings = rdp_client->settings;
#ifdef ENABLE_COMMON_SSH
guac_rdp_settings* settings = rdp_client->settings;
/* If SFTP is enabled and SFTP uploads have not been disabled, it should be
* used for default uploads only if RDPDR is not enabled or its upload