Module Name: src Committed By: christos Date: Mon Nov 11 16:43:26 UTC 2013
Modified Files: src/crypto/external/bsd/openssh/dist: sftp-client.c Log Message: CID 1092473: Fix file descriptor leak To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/crypto/external/bsd/openssh/dist/sftp-client.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/crypto/external/bsd/openssh/dist/sftp-client.c diff -u src/crypto/external/bsd/openssh/dist/sftp-client.c:1.8 src/crypto/external/bsd/openssh/dist/sftp-client.c:1.9 --- src/crypto/external/bsd/openssh/dist/sftp-client.c:1.8 Fri Nov 8 14:18:25 2013 +++ src/crypto/external/bsd/openssh/dist/sftp-client.c Mon Nov 11 11:43:26 2013 @@ -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 <d...@openbsd.org> @@ -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_download(struct sftp_conn *conn, char do_close(conn, handle, handle_len); buffer_free(&msg); free(handle); + close(local_fd); return -1; } offset = highwater = st.st_size;