[pkg-opensc-commit] [pam-p11] 19/66: fix argument check.
Eric Dorland
eric at moszumanska.debian.org
Tue Jun 13 04:06:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository pam-p11.
commit cc3e02540b83ee2aab3a7b63d541207987d4060e
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date: Mon Oct 31 09:42:55 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