aboutsummaryrefslogtreecommitdiff
path: root/src/kex.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-13 10:51:12 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-13 10:51:12 +0200
commitabd6b8004ebe2913eb475a8b8ae3bc84c925d4fa (patch)
tree8340c02b7bfbeddb29d04011f8ce2486f78f4250 /src/kex.c
parente3c5096fcff39260c846fcbc816f106ee38b17b9 (diff)
downloadlibssh-abd6b8004ebe2913eb475a8b8ae3bc84c925d4fa.tar.gz
libssh-abd6b8004ebe2913eb475a8b8ae3bc84c925d4fa.tar.xz
libssh-abd6b8004ebe2913eb475a8b8ae3bc84c925d4fa.zip
kex: Fix a double free.
Diffstat (limited to 'src/kex.c')
-rw-r--r--src/kex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kex.c b/src/kex.c
index e900a91a..c678731e 100644
--- a/src/kex.c
+++ b/src/kex.c
@@ -460,6 +460,7 @@ int ssh_send_kex(ssh_session session, int server_kex) {
goto error;
}
ssh_string_free(str);
+ str = NULL;
}
if (buffer_add_u8(session->out_buffer, 0) < 0) {