From 9895f5fa8c28008d4ef291c77c3dfb1a361f0fa7 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sat, 19 Jan 2008 20:48:54 +0000 Subject: fd leak on session multiplexing error path. Report and patch from gregory_shively AT fanniemae.com --- usr.bin/ssh/clientloop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/ssh/clientloop.c b/usr.bin/ssh/clientloop.c index 49513819500..3505086098e 100644 --- a/usr.bin/ssh/clientloop.c +++ b/usr.bin/ssh/clientloop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clientloop.c,v 1.185 2007/12/28 22:34:47 dtucker Exp $ */ +/* $OpenBSD: clientloop.c,v 1.186 2008/01/19 20:48:53 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -880,6 +880,7 @@ client_process_control(fd_set *readset) xfree(cctx->env); xfree(cctx->term); buffer_free(&cctx->cmd); + close(client_fd); xfree(cctx); return; } -- cgit v1.2.3