diff options
author | 2005-03-10 22:01:05 +0000 | |
---|---|---|
committer | 2005-03-10 22:01:05 +0000 | |
commit | 96dd1b33be3ae502fbf39f59d448abeddd6894e6 (patch) | |
tree | 28791c2a45055b9ab97e480be0a54c536a911040 /usr.bin/ssh/sftp-client.c | |
parent | remove dead code, noted by ho@ (diff) | |
download | wireguard-openbsd-96dd1b33be3ae502fbf39f59d448abeddd6894e6.tar.xz wireguard-openbsd-96dd1b33be3ae502fbf39f59d448abeddd6894e6.zip |
spacing
Diffstat (limited to 'usr.bin/ssh/sftp-client.c')
-rw-r--r-- | usr.bin/ssh/sftp-client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/sftp-client.c b/usr.bin/ssh/sftp-client.c index 261c2e9a737..7a54744b601 100644 --- a/usr.bin/ssh/sftp-client.c +++ b/usr.bin/ssh/sftp-client.c @@ -20,7 +20,7 @@ /* XXX: copy between two remote sites */ #include "includes.h" -RCSID("$OpenBSD: sftp-client.c,v 1.52 2004/11/25 22:22:14 markus Exp $"); +RCSID("$OpenBSD: sftp-client.c,v 1.53 2005/03/10 22:01:05 deraadt Exp $"); #include <sys/queue.h> @@ -856,7 +856,7 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path, debug3("Received reply T:%u I:%u R:%d", type, id, max_req); /* Find the request in our queue */ - for(req = TAILQ_FIRST(&requests); + for (req = TAILQ_FIRST(&requests); req != NULL && req->id != id; req = TAILQ_NEXT(req, tq)) ; @@ -1105,7 +1105,7 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path, debug3("SSH2_FXP_STATUS %d", status); /* Find the request in our queue */ - for(ack = TAILQ_FIRST(&acks); + for (ack = TAILQ_FIRST(&acks); ack != NULL && ack->id != r_id; ack = TAILQ_NEXT(ack, tq)) ; |