summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-03-19 22:36:20 +1100
committerDamien Miller <djm@mindrot.org>2001-03-19 22:36:20 +1100
commit27dbe6f37e675bda22d99646e236eac1d18d36ac (patch)
tree80c5813d2cd6d7684f3dabbf4b03e636b1495f61 /sshd.c
parentcafff1910541b1704e80b3cb16f6926135f23ea6 (diff)
- deraadt@cvs.openbsd.org 2001/03/18 23:30:55
[compat.c compat.h sshd.c] specifically version match on ssh scanners. do not log scan information to the console
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 0a1048cd3..384d4082d 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.174 2001/03/09 12:30:29 deraadt Exp $"); 43RCSID("$OpenBSD: sshd.c,v 1.175 2001/03/18 23:30:55 deraadt Exp $");
44 44
45#include <openssl/dh.h> 45#include <openssl/dh.h>
46#include <openssl/bn.h> 46#include <openssl/bn.h>
@@ -381,6 +381,12 @@ sshd_exchange_identification(int sock_in, int sock_out)
381 381
382 compat_datafellows(remote_version); 382 compat_datafellows(remote_version);
383 383
384 if (datafellows & SSH_BUG_SCANNER) {
385 log("scanned from %s with %s. Don't panic.",
386 get_remote_ipaddr(), client_version_string);
387 fatal_cleanup();
388 }
389
384 mismatch = 0; 390 mismatch = 0;
385 switch(remote_major) { 391 switch(remote_major) {
386 case 1: 392 case 1: