]> andersk Git - openssh.git/commitdiff
- markus@cvs.openbsd.org 2002/02/24 16:57:19
authormouring <mouring>
Tue, 26 Feb 2002 18:02:43 +0000 (18:02 +0000)
committermouring <mouring>
Tue, 26 Feb 2002 18:02:43 +0000 (18:02 +0000)
     [sftp-client.c]
     early close(), missing free; ok stevesk@

ChangeLog
sftp-client.c

index bc2515b1e3ce49caf516a0ab6b9f1388a88a0fdb..3c6017371270c28bbf4f82f447b3f3265abc5328 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,9 @@
    - stevesk@cvs.openbsd.org 2002/02/24 16:09:52
      [sshd.c]
      use u_char* here; ok markus@
+   - markus@cvs.openbsd.org 2002/02/24 16:57:19
+     [sftp-client.c]
+     early close(), missing free; ok stevesk@
 
 20020225
  - (bal) Last AIX patch.  Moved aix_usrinfo() outside of do_setuserconext()
index 481341c669cd8df08b4db77c97461da1a5c71ee8..17ac14a95e31c8dfe104ec5d6e53106a732ec27f 100644 (file)
@@ -28,7 +28,7 @@
 /* XXX: copy between two remote sites */
 
 #include "includes.h"
-RCSID("$OpenBSD: sftp-client.c,v 1.23 2002/02/13 00:59:23 djm Exp $");
+RCSID("$OpenBSD: sftp-client.c,v 1.24 2002/02/24 16:57:19 markus Exp $");
 
 #if defined(HAVE_SYS_QUEUE_H) && !defined(HAVE_BOGUS_SYS_QUEUE_H)
 #include <sys/queue.h>
@@ -799,7 +799,6 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
        handle = get_handle(conn->fd_in, id, &handle_len);
        if (handle == NULL) {
                buffer_free(&msg);
-               close(local_fd);
                return(-1);
        }
 
@@ -807,6 +806,8 @@ 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));
+               buffer_free(&msg);
+               xfree(handle);
                return(-1);
        }
 
This page took 0.222304 seconds and 5 git commands to generate.