]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: sftp-client.c needs poll.h
authordjm@openbsd.org <djm@openbsd.org>
Sat, 7 Aug 2021 01:55:01 +0000 (01:55 +0000)
committerDamien Miller <djm@mindrot.org>
Sat, 7 Aug 2021 01:57:13 +0000 (11:57 +1000)
remove unused variable

OpenBSD-Commit-ID: 233ac6c012cd23af62f237167a661db391055a16

sftp-client.c

index 0cfc1f0d9cd100e1d814fff1b335a7a79b71d1d3..943d142f373ec17445f4ff4df81b1abb6a7a696d 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.c,v 1.151 2021/08/07 00:14:17 djm Exp $ */
+/* $OpenBSD: sftp-client.c,v 1.152 2021/08/07 01:55:01 djm Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
  *
@@ -2149,7 +2149,7 @@ do_crossload(struct sftp_conn *from, struct sftp_conn *to,
     Attrib *a, int preserve_flag)
 {
        struct sshbuf *msg;
-       int write_error, read_error, lmodified = 0, r;
+       int write_error, read_error, r;
        u_int64_t offset = 0, size;
        u_int id, buflen, num_req, max_req, status = SSH2_FX_OK;
        u_int num_upload_req;
@@ -2271,7 +2271,6 @@ do_crossload(struct sftp_conn *from, struct sftp_conn *to,
                        if (len > req->len)
                                fatal("Received more data than asked for "
                                    "%zu > %zu", len, req->len);
-                       lmodified = 1;
 
                        /* Write this chunk out to the destination */
                        sshbuf_reset(msg);