mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
Fix logic erorr with brace-less conditional statement
This commit is contained in:
committed by
Aris Adamantiadis
parent
89733e697f
commit
a15399992e
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user