GUACAMOLE-1122: Correct scope of settings variable for RDP user file handler."
diff --git a/src/protocols/rdp/user.c b/src/protocols/rdp/user.c
index 4e32645..ef40196 100644
--- a/src/protocols/rdp/user.c
+++ b/src/protocols/rdp/user.c
@@ -127,9 +127,9 @@
         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