summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-12-21 12:44:28 +1100
committerDamien Miller <djm@mindrot.org>2001-12-21 12:44:28 +1100
commit72c336def6499559ec7069fc612b45c1c4957508 (patch)
treea5457ad2d9eb81942d9c9a9fff60e1d3fb57125a /sshd.c
parentee11625d4309da4d4eb7a307a2a58f35354a001a (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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index f105b8b06..91376de2e 100644
--- a/sshd.c
+++ b/sshd.c
@@ -40,7 +40,7 @@
40 */ 40 */
41 41
42#include "includes.h" 42#include "includes.h"
43RCSID("$OpenBSD: sshd.c,v 1.215 2001/12/06 13:30:06 markus Exp $"); 43RCSID("$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) {