summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-03-28 20:50:46 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-03-28 20:50:46 +0000
commit24e3b33bf9b9d8d0f0e7eb2850e1f0279c46e529 (patch)
treecf884e43cd512a1f6c734613608718d81bd58503
parent01f3bfe55e3751082df3160cb6d1fd2014bf732e (diff)
call refuse() before close(); from olemx@ans.pl
-rw-r--r--usr.bin/ssh/sshd.c4
1 files changed, 2 insertions, 2 deletions
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 <openssl/dh.h>
#include <openssl/bn.h>
@@ -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); */
}