summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2013-11-20 15:55:40 +0000
committerDmitry V. Levin <ldv@altlinux.org>2013-11-20 16:07:03 +0000
commit2a5d231074efd71281a8d722519b69fda0748a7e (patch)
treeadc2d1fd9478a68724929d38f5b9be154cc83678 /modules
parent988199b01aefffc266804b40ef24ad00ef4610e5 (diff)
pam_access: fix debug level logging (ticket #19)
* modules/pam_access/pam_access.c (group_match): Log the group token passed to the function, not an uninitialized data on the stack.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_access/pam_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pam_access/pam_access.c b/modules/pam_access/pam_access.c
index a9cce510..87626e73 100644
--- a/modules/pam_access/pam_access.c
+++ b/modules/pam_access/pam_access.c
@@ -573,7 +573,7 @@ group_match (pam_handle_t *pamh, const char *tok, const char* usr,
if (debug)
pam_syslog (pamh, LOG_DEBUG,
- "group_match: grp=%s, user=%s", grptok, usr);
+ "group_match: grp=%s, user=%s", tok, usr);
if (strlen(tok) < 3)
return NO;