Patches to prevent a couple of silly crashes
[u/mdw/putty] / psftp.c
diff --git a/psftp.c b/psftp.c
index f4c254a..deef6d8 100644 (file)
--- a/psftp.c
+++ b/psftp.c
@@ -590,6 +590,7 @@ void do_sftp(void) {
        fprintf(stderr,
                "Fatal: unable to initialise SFTP: %s\n",
                fxp_error());
+       return;
     }
 
     /*