From f542826b04e35f13a30116564daaf6456440b1d4 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 19 Dec 2014 17:12:05 -0500 Subject: [PATCH] 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 Debian-Bug-Id: 773415 --- tools/gpgkey2ssh.c | 2 ++ 1 file changed, 2 insertions(+) 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);