1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

Fix logic erorr with brace-less conditional statement

This commit is contained in:
Lee Hambley
2012-01-03 19:15:16 +01:00
committed by Aris Adamantiadis
parent 89733e697f
commit a15399992e

View File

@@ -147,9 +147,10 @@ int ssh_options_copy(ssh_session src, ssh_session *dest) {
if(src->ProxyCommand) {
new->ProxyCommand = strdup(src->ProxyCommand);
if(new->ProxyCommand == NULL)
if(new->ProxyCommand == NULL) {
ssh_free(new);
return -1;
}
}
new->fd = src->fd;
new->port = src->port;