summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sftp-client.c b/sftp-client.c
index 490c00bdd..b4ee847da 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -331,7 +331,7 @@ do_ls(int fd_in, int fd_out, char *path)
331 error("Couldn't read directory: %s", 331 error("Couldn't read directory: %s",
332 fx2txt(status)); 332 fx2txt(status));
333 do_close(fd_in, fd_out, handle, handle_len); 333 do_close(fd_in, fd_out, handle, handle_len);
334 return(NULL); 334 return(0);
335 } 335 }
336 } else if (type != SSH2_FXP_NAME) 336 } else if (type != SSH2_FXP_NAME)
337 fatal("Expected SSH2_FXP_NAME(%d) packet, got %d", 337 fatal("Expected SSH2_FXP_NAME(%d) packet, got %d",