diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/libssh_scp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/libssh_scp.c b/examples/libssh_scp.c index 99281db8..46199f47 100644 --- a/examples/libssh_scp.c +++ b/examples/libssh_scp.c @@ -229,6 +229,7 @@ static int do_copy(struct location *src, struct location *dest, int recursive){ fprintf(stderr,"error: %s\n",ssh_get_error(dest->session)); ssh_string_free_char(filename); ssh_scp_free(dest->scp); + dest->scp = NULL; return -1; } } else { |