diff options
Diffstat (limited to 'libssh/options.c')
-rw-r--r-- | libssh/options.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh/options.c b/libssh/options.c index acba8af3..97e6f7ae 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -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->port = src->port; new->callbacks = src->callbacks; |