From f04ac9c8a6e28d1af02c7e590a957bdfcacb51fe Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Sun, 6 May 2018 13:10:21 +0200 Subject: src/pam-freerdp.c: Update some comments. --- src/pam-freerdp2.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/pam-freerdp2.c b/src/pam-freerdp2.c index 45ba346..00e0e0c 100644 --- a/src/pam-freerdp2.c +++ b/src/pam-freerdp2.c @@ -57,10 +57,10 @@ static char * get_item (pam_handle_t * pamh, int type) { /* Check to see if we just have the value. If we do, great - let's dup it some we're consitently allocating memory */ + let's dup it some we're consistently allocating memory */ if ((type == PAM_USER) || (type == PAM_AUTHTOK)) { - /* If it's not a domain we can use the PAM functions because the PAM - functions don't support the domain */ + /* If it's not an RDP parameter type we can use the PAM functions because the PAM + functions don't support RDP parameters */ char * value = NULL; if (pam_get_item(pamh, type, (const void **)&value) == PAM_SUCCESS && value != NULL) { return value; @@ -71,8 +71,7 @@ get_item (pam_handle_t * pamh, int type) return global_password; } } else { - /* Here we only have domains, so we can see if the global domain is - useful for us, if we have it */ + /* Here we deal with all RDP specific parameters */ if ((type == PAM_TYPE_RDP_USER) && (global_rdp_user != NULL)) { return global_rdp_user; } -- cgit v1.2.3