summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-29 00:45:12 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-29 00:45:12 +0000
commit7de696e798c96240f9ae5c345084a008e9bed096 (patch)
tree3248aafe7ec4fdbfb6d986ebf37a810d73be0c79 /sshd.c
parentff2618c80fdabba2a667c261426b05ce750ee6f1 (diff)
- markus@cvs.openbsd.org 2001/03/28 20:50:45
[sshd.c] call refuse() before close(); from olemx@ans.pl
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index 65cb832d4..27da6e48d 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.181 2001/03/27 17:46:49 provos Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.182 2001/03/28 20:50:45 markus Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -1099,9 +1099,9 @@ main(int ac, char **av)
1099 fromhost(&req); 1099 fromhost(&req);
1100 1100
1101 if (!hosts_access(&req)) { 1101 if (!hosts_access(&req)) {
1102 refuse(&req);
1102 close(sock_in); 1103 close(sock_in);
1103 close(sock_out); 1104 close(sock_out);
1104 refuse(&req);
1105 } 1105 }
1106/*XXX IPv6 verbose("Connection from %.500s port %d", eval_client(&req), remote_port); */ 1106/*XXX IPv6 verbose("Connection from %.500s port %d", eval_client(&req), remote_port); */
1107 } 1107 }