diff options
author | Tomas Mraz <tm@t8m.info> | 2005-01-24 14:04:17 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2005-01-24 14:04:17 +0000 |
commit | 8533e9b7645c0908da2755d00f31de1aaa833b27 (patch) | |
tree | bb2f8aee4277f832eee72dd30af45f74ab6487d0 /modules/pam_tally | |
parent | 66ef489cd8a7473420872e27cdad1c11dc098ff6 (diff) | |
download | pam-8533e9b7645c0908da2755d00f31de1aaa833b27.tar.gz pam-8533e9b7645c0908da2755d00f31de1aaa833b27.tar.bz2 pam-8533e9b7645c0908da2755d00f31de1aaa833b27.zip |
Relevant BUGIDs: none
Purpose of commit: bugfix
Commit summary:
---------------
Fix possible segfault in the last patch to pam_tally.
Diffstat (limited to 'modules/pam_tally')
-rw-r--r-- | modules/pam_tally/pam_tally.c | 7 |
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); |