Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssh/dist CID 1092473: Fix file descr...



details:   https://anonhg.NetBSD.org/src/rev/4dd4a9b9fce7
branches:  trunk
changeset: 791279:4dd4a9b9fce7
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 11 16:43:26 2013 +0000

description:
CID 1092473: Fix file descriptor leak

diffstat:

 crypto/external/bsd/openssh/dist/sftp-client.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r abd75b81bebf -r 4dd4a9b9fce7 crypto/external/bsd/openssh/dist/sftp-client.c
--- a/crypto/external/bsd/openssh/dist/sftp-client.c    Mon Nov 11 16:39:21 2013 +0000
+++ b/crypto/external/bsd/openssh/dist/sftp-client.c    Mon Nov 11 16:43:26 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sftp-client.c,v 1.8 2013/11/08 19:18:25 christos Exp $ */
+/*     $NetBSD: sftp-client.c,v 1.9 2013/11/11 16:43:26 christos Exp $ */
 /* $OpenBSD: sftp-client.c,v 1.101.2.1 2013/11/08 01:33:56 djm Exp $ */
 /*
  * Copyright (c) 2001-2004 Damien Miller <djm%openbsd.org@localhost>
@@ -22,7 +22,7 @@
 /* XXX: copy between two remote sites */
 
 #include "includes.h"
-__RCSID("$NetBSD: sftp-client.c,v 1.8 2013/11/08 19:18:25 christos Exp $");
+__RCSID("$NetBSD: sftp-client.c,v 1.9 2013/11/11 16:43:26 christos Exp $");
 #include <sys/types.h>
 #include <sys/poll.h>
 #include <sys/queue.h>
@@ -1069,6 +1069,7 @@
                        do_close(conn, handle, handle_len);
                        buffer_free(&msg);
                        free(handle);
+                       close(local_fd);
                        return -1;
                }
                offset = highwater = st.st_size;



Home | Main Index | Thread Index | Old Index