mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-07 08:02:55 +03:00
session: Use a struct for all options.
This commit is contained in:
@@ -360,7 +360,7 @@ int set_client_kex(ssh_session session){
|
||||
|
||||
memset(client->methods, 0, KEX_METHODS_SIZE * sizeof(char **));
|
||||
for (i = 0; i < KEX_METHODS_SIZE; i++) {
|
||||
wanted = session->wanted_methods[i];
|
||||
wanted = session->opts.wanted_methods[i];
|
||||
if (wanted == NULL)
|
||||
wanted = default_methods[i];
|
||||
client->methods[i] = strdup(wanted);
|
||||
|
Reference in New Issue
Block a user