[pkg-opensc-commit] [pam-p11] 03/03: fix argument check.
Eric Dorland
eric at moszumanska.debian.org
Tue Jun 13 04:07:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to tag pam_p11-0.1.2
in repository pam-p11.
commit 798b16db014090b3f77c2c3f409b2201f1c6a413
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date: Mon Oct 31 09:43:13 2005 +0000
fix argument check.
---
src/pam_p11.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/pam_p11.c b/src/pam_p11.c
index 6f97f16..120e548 100644
--- a/src/pam_p11.c
+++ b/src/pam_p11.c
@@ -91,9 +91,8 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t * pamh, int flags, int argc,
openlog(LOGNAME, LOG_CONS | LOG_PID, LOG_AUTHPRIV);
/* check parameters */
- if (argc != 2) {
- syslog(LOG_ERR, "%s failed: need pkcs11 module as argument",
- argv[0]);
+ if (argc != 1) {
+ syslog(LOG_ERR, "need pkcs11 module as argument");
return PAM_ABORT;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/pam-p11.git
More information about the pkg-opensc-commit
mailing list