summaryrefslogtreecommitdiffstats
path: root/src/options.c
diff options
context:
space:
mode:
authorLee Hambley <lee.hambley@gmail.com>2012-01-03 19:15:16 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2012-01-03 19:41:28 +0100
commita15399992e058aef023d2da894e9f7f77423e8e3 (patch)
tree2559d87c647ef525fd1785581dce77bfa8cbb9a7 /src/options.c
parent89733e697fafaaf295928b148073fe5b3c191de7 (diff)
downloadlibssh-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.c3
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;