diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-10 22:46:20 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-05-10 22:46:20 +0200 |
commit | 57134818385d89db542f466ea98dbf25f0396700 (patch) | |
tree | dc3ced1668c92283e7ef897a84adb43294589ff9 | |
parent | 74c9c1afa9db2ea9045196b39be0e2aeb847c0ee (diff) | |
download | libssh-57134818385d89db542f466ea98dbf25f0396700.tar.gz libssh-57134818385d89db542f466ea98dbf25f0396700.tar.xz libssh-57134818385d89db542f466ea98dbf25f0396700.zip |
Fix options copy
-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; |