Skip to content

Commit 3250b49

Browse files
committed
client session BUGFIX double free
Fixes CESNET/netopeer2#454
1 parent 2c63a6d commit 3250b49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/session_client_ssh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1845,7 +1845,7 @@ nc_accept_callhome_ssh_sock(int sock, const char *host, uint16_t port, struct ly
18451845

18461846
session = _nc_connect_libssh(sess, ctx, &ssh_ch_opts, timeout);
18471847
if (!session) {
1848-
ssh_free(sess);
1848+
/* sess is freed */
18491849
return NULL;
18501850
}
18511851

0 commit comments

Comments
 (0)