diff options
author | Lee Hambley <lee.hambley@gmail.com> | 2012-01-03 19:15:16 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2012-01-03 19:41:28 +0100 |
commit | a15399992e058aef023d2da894e9f7f77423e8e3 (patch) | |
tree | 2559d87c647ef525fd1785581dce77bfa8cbb9a7 /src/options.c | |
parent | 89733e697fafaaf295928b148073fe5b3c191de7 (diff) | |
download | libssh-a15399992e058aef023d2da894e9f7f77423e8e3.tar.gz libssh-a15399992e058aef023d2da894e9f7f77423e8e3.tar.xz libssh-a15399992e058aef023d2da894e9f7f77423e8e3.zip |
Fix logic erorr with brace-less conditional statement
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c index f23bfcb5..41a0dacd 100644 --- a/src/options.c +++ b/src/options.c @@ -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; |