aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgkey2ssh.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2014-12-19 22:12:05 +0000
committerWerner Koch <[email protected]>2014-12-22 11:49:03 +0000
commit351bca9047d748c3c4f7e9a3cdc476af127b1da3 (patch)
tree30166e72aba1b9bcd2fd427fb70cee680f0c31e6 /tools/gpgkey2ssh.c
parentdoc: Fix memory leak in yat2m. (diff)
downloadgnupg-351bca9047d748c3c4f7e9a3cdc476af127b1da3.tar.gz
gnupg-351bca9047d748c3c4f7e9a3cdc476af127b1da3.zip
gpgkey2ssh: clean up varargs
* tools/gpgkey2ssh.c (key_to_blob) : ensure that va_end is called. -- stdarg(3) says: Each invocation of va_start() must be matched by a corresponding invocation of va_end() in the same function. Observed by Joshua Rogers <[email protected]> Debian-Bug-Id: 773415
Diffstat (limited to 'tools/gpgkey2ssh.c')
-rw-r--r--tools/gpgkey2ssh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gpgkey2ssh.c b/tools/gpgkey2ssh.c
index 903fb5bd6..d22c5acf2 100644
--- a/tools/gpgkey2ssh.c
+++ b/tools/gpgkey2ssh.c
@@ -224,6 +224,8 @@ key_to_blob (unsigned char **blob, size_t *blob_n, const char *identifier, ...)
assert (ret == 1);
}
+ va_end (ap);
+
blob_new_n = ftell (stream);
rewind (stream);