summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-06-09 10:45:33 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-06-10 10:17:22 -0400
commita1445466e298085a4a1f847cf50b6d2f8f007a9a (patch)
tree1bc9462a09f4d35674ee4518db5bf5f1fbc612d3 /src/tools
parentec79ebede424ad301cf128f5c774f8557b0c7f0d (diff)
downloadsssd2-a1445466e298085a4a1f847cf50b6d2f8f007a9a.tar.gz
sssd2-a1445466e298085a4a1f847cf50b6d2f8f007a9a.tar.xz
sssd2-a1445466e298085a4a1f847cf50b6d2f8f007a9a.zip
Make sure to close varargs before returning from a function
https://fedorahosted.org/sssd/ticket/528
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/selinux.c b/src/tools/selinux.c
index 23951289..27cc5680 100644
--- a/src/tools/selinux.c
+++ b/src/tools/selinux.c
@@ -116,11 +116,11 @@ static void sss_semanage_error_callback(void *varg,
va_start(ap, fmt);
ret = vasprintf(&message, fmt, ap);
+ va_end(ap);
if (ret < 0) {
/* ENOMEM */
return;
}
- va_end(ap);
if (level <= debug_level) {
if (debug_timestamps) {