commit | 3250b496c8c7b354917b5d863dc16c66d1f24c25 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Aug 15 13:59:49 2019 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Aug 15 13:59:49 2019 +0200 |
tree | 98e2008d4e107a59c563e0f2419303e4416d7cb6 | |
parent | 2c63a6df826cf882f03bd0a235fc105f60752d93 [diff] |
client session BUGFIX double free Fixes cesnet/netopeer2#454
diff --git a/src/session_client_ssh.c b/src/session_client_ssh.c index a2f3dbf..8f76e49 100644 --- a/src/session_client_ssh.c +++ b/src/session_client_ssh.c
@@ -1845,7 +1845,7 @@ session = _nc_connect_libssh(sess, ctx, &ssh_ch_opts, timeout); if (!session) { - ssh_free(sess); + /* sess is freed */ return NULL; }