Module Name:    src
Committed By:   christos
Date:           Fri Mar 21 14:06:14 UTC 2025

Modified Files:
        src/crypto/external/bsd/openssh/dist: sshd-session.c

Log Message:
PR/59200: Jose Luis Duran: A lot of bots are checking for SSH version 1
(or mismatched), and currently blocklistd does not mark them as an nfail,
spamming the console/logs.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/crypto/external/bsd/openssh/dist/sshd-session.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssh/dist/sshd-session.c
diff -u src/crypto/external/bsd/openssh/dist/sshd-session.c:1.7 src/crypto/external/bsd/openssh/dist/sshd-session.c:1.8
--- src/crypto/external/bsd/openssh/dist/sshd-session.c:1.7	Fri Mar 21 10:04:33 2025
+++ src/crypto/external/bsd/openssh/dist/sshd-session.c	Fri Mar 21 10:06:14 2025
@@ -1,4 +1,4 @@
-/*	$NetBSD: sshd-session.c,v 1.7 2025/03/21 14:04:33 christos Exp $	*/
+/*	$NetBSD: sshd-session.c,v 1.8 2025/03/21 14:06:14 christos Exp $	*/
 /* $OpenBSD: sshd-session.c,v 1.9 2024/09/09 02:39:57 djm Exp $ */
 
 /*
@@ -30,7 +30,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: sshd-session.c,v 1.7 2025/03/21 14:04:33 christos Exp $");
+__RCSID("$NetBSD: sshd-session.c,v 1.8 2025/03/21 14:06:14 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1260,8 +1260,10 @@ main(int ac, char **av)
 	}
 
 	if ((r = kex_exchange_identification(ssh, -1,
-	    options.version_addendum)) != 0)
+	    options.version_addendum)) != 0) {
+		pfilter_notify(1);
 		sshpkt_fatal(ssh, r, "banner exchange");
+	}
 
 	ssh_packet_set_nonblocking(ssh);
 

Reply via email to