diff options
author | Daniel Kahn Gillmor <[email protected]> | 2014-12-19 22:12:05 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-01-13 01:52:21 +0000 |
commit | f542826b04e35f13a30116564daaf6456440b1d4 (patch) | |
tree | dd2771fef5982a64d7941ef4445541f6fb9c3e05 | |
parent | doc: Fix memory leak in yat2m. (diff) | |
download | gnupg-f542826b04e35f13a30116564daaf6456440b1d4.tar.gz gnupg-f542826b04e35f13a30116564daaf6456440b1d4.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
-rw-r--r-- | tools/gpgkey2ssh.c | 2 |
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); |