mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
Fix options copy
This commit is contained in:
@@ -131,6 +131,11 @@ int ssh_options_copy(ssh_session src, ssh_session *dest) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(src->ProxyCommand) {
|
||||||
|
new->ProxyCommand = strdup(src->ProxyCommand);
|
||||||
|
if(new->ProxyCommand == NULL)
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
new->fd = src->fd;
|
new->fd = src->fd;
|
||||||
new->port = src->port;
|
new->port = src->port;
|
||||||
new->callbacks = src->callbacks;
|
new->callbacks = src->callbacks;
|
||||||
|
|||||||
Reference in New Issue
Block a user