1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

kex: Fix a double free.

This commit is contained in:
Andreas Schneider
2013-06-13 10:51:12 +02:00
parent e3c5096fcf
commit abd6b8004e

View File

@@ -460,6 +460,7 @@ int ssh_send_kex(ssh_session session, int server_kex) {
goto error; goto error;
} }
ssh_string_free(str); ssh_string_free(str);
str = NULL;
} }
if (buffer_add_u8(session->out_buffer, 0) < 0) { if (buffer_add_u8(session->out_buffer, 0) < 0) {