summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2005-01-24 14:04:17 +0000
committerTomas Mraz <tm@t8m.info>2005-01-24 14:04:17 +0000
commit8533e9b7645c0908da2755d00f31de1aaa833b27 (patch)
treebb2f8aee4277f832eee72dd30af45f74ab6487d0 /modules
parent66ef489cd8a7473420872e27cdad1c11dc098ff6 (diff)
Relevant BUGIDs: none
Purpose of commit: bugfix Commit summary: --------------- Fix possible segfault in the last patch to pam_tally.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_tally/pam_tally.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/pam_tally/pam_tally.c b/modules/pam_tally/pam_tally.c
index f1f13c16..57fa611a 100644
--- a/modules/pam_tally/pam_tally.c
+++ b/modules/pam_tally/pam_tally.c
@@ -770,7 +770,12 @@ int main ( int argc, char **argv ) {
uid_t uid;
tally_t tally=cline_reset;
FILE *TALLY=0;
- int i=pam_get_uid( NULL, &uid, NULL, NULL);
+ struct tally_options opts;
+ int i;
+
+ memset(&opts, 0, sizeof(opts));
+ opts.ctrl = OPT_AUDIT;
+ i=pam_get_uid( NULL, &uid, NULL, &opts);
if ( i != PAM_SUCCESS ) {
fprintf(stderr,"%s: %s\n",*argv,pam_errors(i));
exit(0);