1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2026-01-06 14:21:55 +03:00

Fix options copy

This commit is contained in:
Aris Adamantiadis
2010-05-10 22:46:20 +02:00
parent 74c9c1afa9
commit 5713481838

View File

@@ -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;