aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_rootok
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2023-11-11 01:22:32 +0100
committerDmitry V. Levin <github.dl@altlinux.org>2023-11-12 17:09:57 +0000
commitb0538e2c35bde47cec0734cdb46f33e4cb759865 (patch)
tree8bcc6ad71aadb0bdd980d12ea2ba3cfc25e0c834 /modules/pam_rootok
parent92d86f25b838c322c002fd812ead8f27b60817ad (diff)
downloadpam-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')
-rw-r--r--modules/pam_rootok/pam_rootok.c1
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;
}