~laney/libpam-freerdp/port

« back to all changes in this revision

Viewing changes to src/pam-freerdp.c

Empty password fix and added related unit test Bug#1092428.

Approved by David Barth, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
        }
121
121
 
122
122
        if (type == PAM_AUTHTOK) {
 
123
                if (strlen(promptval) == 0){
 
124
                        free(promptval);
 
125
                        return NULL;
 
126
                }
 
127
 
123
128
                if (mlock(promptval, strlen(promptval) + 1) != 0) {
124
129
                        free(promptval);
125
130
                        return NULL;