diff options
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 f23bfcb..41a0dac 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; |