[openssh-commits] [openssh] 01/02: upstream: Also prohibit , (comma) in hostnames, proposed by David
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Feb 25 20:57:32 AEDT 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 487cf4c18c123b66c1f3f733398cd37e6b2ab6ab
Author: deraadt at openbsd.org <deraadt at openbsd.org>
AuthorDate: Fri Feb 21 18:22:41 2025 +0000
upstream: Also prohibit , (comma) in hostnames, proposed by David
Leadbeater ok djm millert
OpenBSD-Commit-ID: 2837fa31dc6e81976f510f0a259edaa559b20b07
---
ssh.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ssh.c b/ssh.c
index d4e872c4..ff624927 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.604 2025/02/15 01:48:30 djm Exp $ */
+/* $OpenBSD: ssh.c,v 1.605 2025/02/21 18:22:41 deraadt Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -639,7 +639,7 @@ valid_hostname(const char *s)
if (*s == '-')
return 0;
for (i = 0; s[i] != 0; i++) {
- if (strchr("'`\"$\\;&<>|(){}", s[i]) != NULL ||
+ if (strchr("'`\"$\\;&<>|(){},", s[i]) != NULL ||
isspace((u_char)s[i]) || iscntrl((u_char)s[i]))
return 0;
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list