aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pam-freerdp2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pam-freerdp2.c b/src/pam-freerdp2.c
index 1b9a70d..9d19b2e 100644
--- a/src/pam-freerdp2.c
+++ b/src/pam-freerdp2.c
@@ -73,8 +73,8 @@ get_item (pam_handle_t * pamh, int type)
} else {
/* Here we only have domains, so we can see if the global domain is
useful for us, if we have it */
- if ((type == PAM_TYPE_RDP_USER) && (global_user != NULL)) {
- return global_user;
+ if ((type == PAM_TYPE_RDP_USER) && (global_rdp_user != NULL)) {
+ return global_rdp_user;
}
if ((type == PAM_TYPE_RDP_SERVER) && (global_rdp_server != NULL)) {
return global_rdp_server;