Skip to content

Commit

Permalink
Prevent DoS from hosts trying to eat all the sshd slots by marking ti…
Browse files Browse the repository at this point in the history
…meouts

for blacklistd.
  • Loading branch information
zoulasc committed Sep 7, 2019
1 parent a86af2d commit f9057ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crypto/external/bsd/openssh/dist/sshd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: sshd.c,v 1.34 2019/04/20 17:16:40 christos Exp $ */
/* $NetBSD: sshd.c,v 1.35 2019/09/07 13:45:30 christos Exp $ */
/* $OpenBSD: sshd.c,v 1.533 2019/03/01 02:32:39 djm Exp $ */
/*
* Author: Tatu Ylonen <[email protected]>
Expand Down Expand Up @@ -44,7 +44,7 @@
*/

#include "includes.h"
__RCSID("$NetBSD: sshd.c,v 1.34 2019/04/20 17:16:40 christos Exp $");
__RCSID("$NetBSD: sshd.c,v 1.35 2019/09/07 13:45:30 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
#include <sys/ioctl.h>
Expand Down Expand Up @@ -370,6 +370,7 @@ grace_alarm_handler(int sig)

/* XXX pre-format ipaddr/port so we don't need to access active_state */
/* Log error and exit. */
pfilter_notify(1);
sigdie("Timeout before authentication for %s port %d",
ssh_remote_ipaddr(the_active_state),
ssh_remote_port(the_active_state));
Expand Down

0 comments on commit f9057ab

Please sign in to comment.