From ffb3ffe818c5444c3407ec79565a99db53397a2d Mon Sep 17 00:00:00 2001 From: iahmad Date: Tue, 19 Mar 2013 05:09:52 +0000 Subject: Empty password is not supported by xfreerdp, stop the authentication as soon as encounter an empty password --- src/pam-freerdp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c index 8979e6e..ff09ce4 100644 --- a/src/pam-freerdp.c +++ b/src/pam-freerdp.c @@ -120,6 +120,11 @@ get_item (pam_handle_t * pamh, int type) } if (type == PAM_AUTHTOK) { + if (strlen(promptval) == 0){ + free(promptval); + return NULL; + } + if (mlock(promptval, strlen(promptval) + 1) != 0) { free(promptval); return NULL; -- cgit v1.2.3