Lines 457-463
Link Here
|
457 |
ret = pam_set_data(pamh, "pam_mount_system_authtok", |
457 |
ret = pam_set_data(pamh, "pam_mount_system_authtok", |
458 |
authtok, clean_system_authtok); |
458 |
authtok, clean_system_authtok); |
459 |
if (ret == PAM_SUCCESS) { |
459 |
if (ret == PAM_SUCCESS) { |
460 |
if (mlock(authtok, strlen(authtok) + 1) < 0) |
460 |
if (authtok == NULL) |
|
|
461 |
w4rn("authtok is NULL in session code\n"); |
462 |
else if (mlock(authtok, strlen(authtok) + 1) < 0) |
461 |
w4rn("mlock authtok: %s\n", strerror(errno)); |
463 |
w4rn("mlock authtok: %s\n", strerror(errno)); |
462 |
} else { |
464 |
} else { |
463 |
l0g("error trying to save authtok for session code\n"); |
465 |
l0g("error trying to save authtok for session code\n"); |