diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-11-11 01:22:32 +0100 |
---|---|---|
committer | Dmitry V. Levin <github.dl@altlinux.org> | 2023-11-12 17:09:57 +0000 |
commit | b0538e2c35bde47cec0734cdb46f33e4cb759865 (patch) | |
tree | 8bcc6ad71aadb0bdd980d12ea2ba3cfc25e0c834 /modules/pam_rootok/pam_rootok.c | |
parent | 92d86f25b838c322c002fd812ead8f27b60817ad (diff) | |
download | pam-b0538e2c35bde47cec0734cdb46f33e4cb759865.tar.gz pam-b0538e2c35bde47cec0734cdb46f33e4cb759865.tar.bz2 pam-b0538e2c35bde47cec0734cdb46f33e4cb759865.zip |
pam_rootok: call va_end only once
The amount of va_start and va_end calls should be identical. Since
va_end is called right after vasprintf, don't call it later again.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'modules/pam_rootok/pam_rootok.c')
-rw-r--r-- | modules/pam_rootok/pam_rootok.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/pam_rootok/pam_rootok.c b/modules/pam_rootok/pam_rootok.c index 9bc15abf..6d2dfa07 100644 --- a/modules/pam_rootok/pam_rootok.c +++ b/modules/pam_rootok/pam_rootok.c @@ -72,7 +72,6 @@ log_callback (int type UNUSED, const char *fmt, ...) NULL, 0); audit_close(audit_fd); free(buf); - va_end(ap); return 0; } |