]> andersk Git - openssh.git/commitdiff
- djm@cvs.openbsd.org 2008/01/19 22:04:57
authordjm <djm>
Sun, 10 Feb 2008 11:23:41 +0000 (11:23 +0000)
committerdjm <djm>
Sun, 10 Feb 2008 11:23:41 +0000 (11:23 +0000)
     [sftp-client.c]
     fix remote handle leak in do_download() local file open error path;
     report and fix from sworley AT chkno.net

ChangeLog
sftp-client.c

index bcb75537d3cfef1e184780072214c7b6d21560ef..9eae86facb13283f0ec9647d6f26271c6939d90c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      ignore SIGPIPE in multiplex client mode - we can receive this if the
      server runs out of fds on us midway. Report and patch from
      gregory_shively AT fanniemae.com
+   - djm@cvs.openbsd.org 2008/01/19 22:04:57
+     [sftp-client.c]
+     fix remote handle leak in do_download() local file open error path;
+     report and fix from sworley AT chkno.net
 
 20080119
  - (djm) Silence noice from expr in ssh-copy-id; patch from
index 7df46379c06d593946b9b2968e4905ddb195083c..e8cdb96ac8b271a75dc420f8088f1a9f8690948e 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: sftp-client.c,v 1.78 2008/01/11 07:22:27 chl Exp $ */
+/* $OpenBSD: sftp-client.c,v 1.79 2008/01/19 22:04:57 djm Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
  *
@@ -823,6 +823,7 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
        if (local_fd == -1) {
                error("Couldn't open local file \"%s\" for writing: %s",
                    local_path, strerror(errno));
+               do_close(conn, handle, handle_len);
                buffer_free(&msg);
                xfree(handle);
                return(-1);
This page took 0.0492 seconds and 5 git commands to generate.