summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
authorwkoszek <wkoszek@FreeBSD.org>2006-03-20 16:56:08 +0000
committerwkoszek <wkoszek@FreeBSD.org>2006-03-20 16:56:08 +0000
commita9e9a228bdc0d14a627a384fe69df7323aa73609 (patch)
treecab5183c10ea28bd1ecd70e5bbb42aba8d6a1f51 /lib/libpam
parentb2f358b530953a9cb7836a84895bb567e1765dd0 (diff)
downloadFreeBSD-src-a9e9a228bdc0d14a627a384fe69df7323aa73609.zip
FreeBSD-src-a9e9a228bdc0d14a627a384fe69df7323aa73609.tar.gz
There is no need to pass NULL to the pam_error() as the last argument.
Remove it. Reviewed by: des Approved by: cognet (mentor)
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_nologin/pam_nologin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_nologin/pam_nologin.c b/lib/libpam/modules/pam_nologin/pam_nologin.c
index f148be6..2145688 100644
--- a/lib/libpam/modules/pam_nologin/pam_nologin.c
+++ b/lib/libpam/modules/pam_nologin/pam_nologin.c
@@ -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);
}
OpenPOWER on IntegriCloud