Skip to content

Commit

Permalink
tear down mount on connect failure
Browse files Browse the repository at this point in the history
  • Loading branch information
szmi committed Jul 15, 2009
1 parent 0eabd86 commit 2431a28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sshfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3310,8 +3310,10 @@ int main(int argc, char *argv[])
exit(1);

res = ssh_connect();
if (res == -1)
if (res == -1) {
fuse_teardown(fuse, mountpoint);
exit(1);
}

if (multithreaded)
res = fuse_loop_mt(fuse);
Expand Down

0 comments on commit 2431a28

Please sign in to comment.