aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2017-09-09 20:12:18 -0700
committerAndreas Schneider <asn@cryptomilk.org>2017-09-11 16:28:14 +0200
commit73d76a263876e18c33ad2db91039ca389b2a9cd1 (patch)
tree8011bcb279dbfbe066fbc8b7001abc5f1ca6137a
parent1c9eb4dfb9dfe477ce4f879949e5d5ba02ecb646 (diff)
downloadlibssh-73d76a263876e18c33ad2db91039ca389b2a9cd1.tar.gz
libssh-73d76a263876e18c33ad2db91039ca389b2a9cd1.tar.xz
libssh-73d76a263876e18c33ad2db91039ca389b2a9cd1.zip
auth: fix double-free in ssh_userauth_agent_publickey
Fixes T72 Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auth.c b/src/auth.c
index 8a686dc2..1baec109 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -707,6 +707,7 @@ static int ssh_userauth_agent_publickey(ssh_session session,
rc = ssh_buffer_add_ssh_string(session->out_buffer, str);
ssh_string_free(str);
+ str = NULL;
if (rc < 0) {
goto fail;
}