fix: initialize ssl/ssl_ctx in client_connect_ssh to prevent use-after-free

This commit is contained in:
2026-07-17 10:47:46 +02:00
parent ff3e02e977
commit 017c119472
+2
View File
@@ -143,5 +143,7 @@ Client *client_connect_ssh(char *destination, int port) {
client->address.sin_family = AF_UNIX;
client->address_length = 0;
client->ssh_child_pid = pid;
client->ssl = NULL;
client->ssl_ctx = NULL;
return client;
}