From 24e3b33bf9b9d8d0f0e7eb2850e1f0279c46e529 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 28 Mar 2001 20:50:46 +0000 Subject: call refuse() before close(); from olemx@ans.pl --- usr.bin/ssh/sshd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/ssh/sshd.c') diff --git a/usr.bin/ssh/sshd.c b/usr.bin/ssh/sshd.c index 8317371c203..c332711ae7a 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.181 2001/03/27 17:46:49 provos Exp $"); +RCSID("$OpenBSD: sshd.c,v 1.182 2001/03/28 20:50:45 markus Exp $"); #include #include @@ -1078,9 +1078,9 @@ main(int ac, char **av) fromhost(&req); if (!hosts_access(&req)) { + refuse(&req); close(sock_in); close(sock_out); - refuse(&req); } /*XXX IPv6 verbose("Connection from %.500s port %d", eval_client(&req), remote_port); */ } -- cgit v1.2.3