From c9f5e42e8c87fc5f8963b5c13ccc516cf0ba659c Mon Sep 17 00:00:00 2001 From: mouring Date: Sat, 10 Feb 2001 00:37:17 +0000 Subject: [PATCH] - (bal) sftp-client.c replace NULL w/ 0 in do_ls() (pending in OpenBSD tree) --- ChangeLog | 1 + sftp-client.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 30f21e6b..a819238a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -73,6 +73,7 @@ [sftp-int.c] cleanup get_pathname, fix pwd after failed cd. okay djm@ - (djm) Update makefile.in for _PATH_SFTP_SERVER + - (bal) sftp-client.c replace NULL w/ 0 in do_ls() (pending in OpenBSD tree) 20010209 - (bal) patch to vis.c to deal with HAVE_VIS right by Robert Mooney diff --git a/sftp-client.c b/sftp-client.c index 490c00bd..b4ee847d 100644 --- a/sftp-client.c +++ b/sftp-client.c @@ -331,7 +331,7 @@ do_ls(int fd_in, int fd_out, char *path) error("Couldn't read directory: %s", fx2txt(status)); do_close(fd_in, fd_out, handle, handle_len); - return(NULL); + return(0); } } else if (type != SSH2_FXP_NAME) fatal("Expected SSH2_FXP_NAME(%d) packet, got %d", -- 2.45.1