diff options
author | Damien Miller <djm@mindrot.org> | 2001-12-21 12:44:28 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-12-21 12:44:28 +1100 |
commit | 72c336def6499559ec7069fc612b45c1c4957508 (patch) | |
tree | a5457ad2d9eb81942d9c9a9fff60e1d3fb57125a /sshd.c | |
parent | ee11625d4309da4d4eb7a307a2a58f35354a001a (diff) |
- stevesk@cvs.openbsd.org 2001/12/10 16:45:04
[sshd.c]
possible fd leak on error; ok markus@
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -40,7 +40,7 @@ | |||
40 | */ | 40 | */ |
41 | 41 | ||
42 | #include "includes.h" | 42 | #include "includes.h" |
43 | RCSID("$OpenBSD: sshd.c,v 1.215 2001/12/06 13:30:06 markus Exp $"); | 43 | RCSID("$OpenBSD: sshd.c,v 1.216 2001/12/10 16:45:04 stevesk Exp $"); |
44 | 44 | ||
45 | #include <openssl/dh.h> | 45 | #include <openssl/dh.h> |
46 | #include <openssl/bn.h> | 46 | #include <openssl/bn.h> |
@@ -1030,6 +1030,7 @@ main(int ac, char **av) | |||
1030 | } | 1030 | } |
1031 | if (fcntl(newsock, F_SETFL, 0) < 0) { | 1031 | if (fcntl(newsock, F_SETFL, 0) < 0) { |
1032 | error("newsock del O_NONBLOCK: %s", strerror(errno)); | 1032 | error("newsock del O_NONBLOCK: %s", strerror(errno)); |
1033 | close(newsock); | ||
1033 | continue; | 1034 | continue; |
1034 | } | 1035 | } |
1035 | if (drop_connection(startups) == 1) { | 1036 | if (drop_connection(startups) == 1) { |