diff options
author | 2001-02-07 21:58:34 +0000 | |
---|---|---|
committer | 2001-02-07 21:58:34 +0000 | |
commit | 56a3972cffe388c86032ccd53c35ff2b695c84fd (patch) | |
tree | 2babf8f7766169832e01656c3218d0173ee370da /usr.bin/ssh | |
parent | X and other apps need cpp to function; without the comp package cpp does (diff) | |
download | wireguard-openbsd-56a3972cffe388c86032ccd53c35ff2b695c84fd.tar.xz wireguard-openbsd-56a3972cffe388c86032ccd53c35ff2b695c84fd.zip |
older servers reply with SSH2_FXP_NAME + count==0 instead of EOF
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/sftp-client.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c index 5f49074a968..cb6bdcfd6a7 100644 --- a/usr.bin/ssh/sftp-client.c +++ b/usr.bin/ssh/sftp-client.c @@ -29,7 +29,7 @@ /* XXX: copy between two remote sites */ #include "includes.h" -RCSID("$OpenBSD: sftp-client.c,v 1.6 2001/02/07 18:01:18 itojun Exp $"); +RCSID("$OpenBSD: sftp-client.c,v 1.7 2001/02/07 21:58:34 markus Exp $"); #include "ssh.h" #include "buffer.h" @@ -338,6 +338,8 @@ do_ls(int fd_in, int fd_out, char *path) SSH2_FXP_NAME, type); count = buffer_get_int(&msg); + if (count == 0) + break; debug3("Received %i SSH2_FXP_NAME responses", count); for(i = 0; i < count; i++) { char *filename, *longname; |