summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2008-01-19 20:48:54 +0000
committerDamien Miller <djm@cvs.openbsd.org>2008-01-19 20:48:54 +0000
commit9895f5fa8c28008d4ef291c77c3dfb1a361f0fa7 (patch)
tree0b551fd8306609ba90fc39af3766e26f80d961fc
parent69328357820a9ff177de529ba3128ebe478544cd (diff)
fd leak on session multiplexing error path. Report and patch from
gregory_shively AT fanniemae.com
-rw-r--r--usr.bin/ssh/clientloop.c3
1 files changed, 2 insertions, 1 deletions
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 <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, 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;
}