There is no need to pass NULL to the pam_error() as the last argument.

Remove it.

Reviewed by:	des
Approved by:	cognet (mentor)
This commit is contained in:
Wojciech A. Koszek 2006-03-20 16:56:08 +00:00
parent 84044ca360
commit 2ecd560bcc

View file

@ -101,7 +101,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags __unused,
if (mtmp != NULL) {
read(fd, mtmp, st.st_size);
mtmp[st.st_size] = '\0';
pam_error(pamh, "%s", mtmp, NULL);
pam_error(pamh, "%s", mtmp);
free(mtmp);
}