[openssh-commits] [openssh] 66/87: upstream: be more liberal in accepting tab-separated @revoked

git+noreply at mindrot.org git+noreply at mindrot.org
Fri Oct 30 20:21:43 AEDT 2026


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

djm pushed a commit to branch master
in repository openssh.

commit 5c90a1d90e1efc1fa648c48377a090a875752a12
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Fri Oct 30 07:48:23 2026 +0000

    upstream: be more liberal in accepting tab-separated @revoked
    
    markers in known_hosts These shouldn't be ignored if the user picked the
    wrong whitespace...
    
    Anthropic ANT-2026-LIFVTX5L
    
    OpenBSD-Commit-ID: 28be5a0bf9d0d37668d64b8f8ac1c2bb605929f8
---
 hostfile.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/hostfile.c b/hostfile.c
index 033b29104..c02662601 100644
--- a/hostfile.c
+++ b/hostfile.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hostfile.c,v 1.100 2025/11/25 00:57:04 djm Exp $ */
+/* $OpenBSD: hostfile.c,v 1.101 2026/10/30 07:48:23 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo at cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -188,8 +188,7 @@ check_markers(char **cpp)
 		if (ret != MRK_NONE)
 			return MRK_ERROR;
 		/* Markers are terminated by whitespace */
-		if ((sp = strchr(cp, ' ')) == NULL &&
-		    (sp = strchr(cp, '\t')) == NULL)
+		if ((sp = strpbrk(cp, " \t")) == NULL)
 			return MRK_ERROR;
 		/* Extract marker for comparison */
 		if (sp <= cp + 1 || sp >= cp + sizeof(marker))

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


More information about the openssh-commits mailing list