[openssh-commits] [openssh] 04/04: upstream: Use >= instead of > for max comparison so that the

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Sep 17 04:32:28 AEST 2026


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit a738c19f9c197b13fcbc057c3c0d826fc1cd373c
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Wed Sep 16 17:31:27 2026 +0000

    upstream: Use >= instead of > for max comparison so that the
    
    expression is not always false.  Should fix CIDs 913601 and 913602.
    
    OpenBSD-Commit-ID: b5d35e1ddd185dda9389a1b5202a382c1b68f002
---
 misc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc.c b/misc.c
index 33d9d7061..dee84336e 100644
--- a/misc.c
+++ b/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.220 2026/09/16 06:23:15 djm Exp $ */
+/* $OpenBSD: misc.c,v 1.221 2026/09/16 17:31:27 dtucker Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2005-2020 Damien Miller.  All rights reserved.
@@ -3092,7 +3092,7 @@ ptimeout_deadline_sec_double(struct timespec *pt, double sec)
 	struct timespec t;
 
 	memset(&t, 0, sizeof(t));
-	if ((int64_t)sec > SSH_TIME_T_MAX)
+	if ((int64_t)sec >= SSH_TIME_T_MAX)
 		t.tv_sec = SSH_TIME_T_MAX;
 	else if (sec > 0) {
 		t.tv_sec = sec;

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list