From d57725b086928227b293d30fc416a5ce74abf55b Mon Sep 17 00:00:00 2001 From: beck Date: Sun, 21 Aug 2016 03:26:04 +0000 Subject: [PATCH] Change sleep from crazy backoff to one second of sleep between retries ok deraadt@ --- usr.bin/login/login.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 48bb2ce450d..9755972b443 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login.c,v 1.67 2015/12/26 20:51:35 guenther Exp $ */ +/* $OpenBSD: login.c,v 1.68 2016/08/21 03:26:04 beck Exp $ */ /* $NetBSD: login.c,v 1.13 1996/05/15 23:50:16 jtc Exp $ */ /*- @@ -540,7 +540,7 @@ failed: badlogin(username); sleepexit(1); } - sleep((u_int)((cnt - backoff) * tries / 2)); + sleep(1); } } -- 2.20.1