diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-12-10 16:45:05 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2001-12-10 16:45:05 +0000 |
commit | 531620b16358b40fc11aac5fbf243f8c8f5bfd88 (patch) | |
tree | adfb695723ac351fe947f26a70c34c910b017323 /usr.bin | |
parent | c8bc4d31d4686530b85d8b2a87eee9126189291d (diff) |
possible fd leak on error; ok markus@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/sshd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 9b087e55968..67d4cb9d346 100644 --- a/usr.bin/ssh/sshd.c +++ b/usr.bin/ssh/sshd.c @@ -40,7 +40,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: sshd.c,v 1.215 2001/12/06 13:30:06 markus Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.216 2001/12/10 16:45:04 stevesk Exp $"); #include <openssl/dh.h> #include <openssl/bn.h> @@ -1003,6 +1003,7 @@ main(int ac, char **av) } if (fcntl(newsock, F_SETFL, 0) < 0) { error("newsock del O_NONBLOCK: %s", strerror(errno)); + close(newsock); continue; } if (drop_connection(startups) == 1) { |