aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-27 20:20:07 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-27 22:53:53 +0100
commitb3911d0fa251da88eb9e27f1ba14bbc05b3fffd1 (patch)
tree509abd74664f3eff10f02be34d31f905469bdceb
parent1ee687ea6fd7f591f899af029c8c1b382c703dad (diff)
downloadlibssh-b3911d0fa251da88eb9e27f1ba14bbc05b3fffd1.tar.gz
libssh-b3911d0fa251da88eb9e27f1ba14bbc05b3fffd1.tar.xz
libssh-b3911d0fa251da88eb9e27f1ba14bbc05b3fffd1.zip
curve25519: Do not leak q_s_string.
CID #1125256
-rw-r--r--src/curve25519.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/curve25519.c b/src/curve25519.c
index 47c3cae9..8864035a 100644
--- a/src/curve25519.c
+++ b/src/curve25519.c
@@ -133,6 +133,7 @@ int ssh_client_curve25519_reply(ssh_session session, ssh_buffer packet){
goto error;
}
memcpy(session->next_crypto->curve25519_server_pubkey, ssh_string_data(q_s_string), CURVE25519_PUBKEY_SIZE);
+ ssh_string_free(q_s_string);
signature = buffer_get_ssh_string(packet);
if (signature == NULL) {