aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-20 08:20:45 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-20 15:37:23 +0200
commit2ae2baf9caab49691e283b82f144bf4825d3deee (patch)
tree0e77ae264b3b9562fe6e1dcc9c83fbcb79a13c86
parent4c47719d983ba55b2cacd9c0fe6725081cf33344 (diff)
downloadlibssh-2ae2baf9caab49691e283b82f144bf4825d3deee.tar.gz
libssh-2ae2baf9caab49691e283b82f144bf4825d3deee.tar.xz
libssh-2ae2baf9caab49691e283b82f144bf4825d3deee.zip
buffer: Don't call va_end() twice
This is handled in the cleanup. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 7669e24a..da6e587f 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1108,7 +1108,6 @@ int ssh_buffer_unpack_va(struct ssh_buffer_struct *buffer,
for (p = format, count = 0; *p != '\0'; p++, count++) {
/* Invalid number of arguments passed */
if (argc != -1 && count > argc) {
- va_end(ap_copy);
rc = SSH_ERROR;
goto cleanup;
}