summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-10-24 03:03:02 +1000
committerDamien Miller <djm@mindrot.org>2006-10-24 03:03:02 +1000
commit50455890f37724113f348f43592b1857071a695c (patch)
treecf807911f9039dd842d6d1ec9c85d2817f8f9141 /sftp-client.c
parent985a4485f57af55cd8f097ab437fdf87c365ea96 (diff)
- djm@cvs.openbsd.org 2006/10/22 02:25:50
[sftp-client.c] cancel progress meter when upload write fails; ok deraadt@
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sftp-client.c b/sftp-client.c
index e31b2cfaf..42eb2b41b 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-client.c,v 1.74 2006/08/03 03:34:42 deraadt Exp $ */ 1/* $OpenBSD: sftp-client.c,v 1.75 2006/10/22 02:25:50 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -1134,6 +1134,8 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path,
1134 if (status != SSH2_FX_OK) { 1134 if (status != SSH2_FX_OK) {
1135 error("Couldn't write to remote file \"%s\": %s", 1135 error("Couldn't write to remote file \"%s\": %s",
1136 remote_path, fx2txt(status)); 1136 remote_path, fx2txt(status));
1137 if (showprogress)
1138 stop_progress_meter();
1137 do_close(conn, handle, handle_len); 1139 do_close(conn, handle, handle_len);
1138 close(local_fd); 1140 close(local_fd);
1139 xfree(data); 1141 xfree(data);