]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ssh: Be more paranoid with host/domain names coming from the
authorEd Maste <emaste@FreeBSD.org>
Mon, 6 Feb 2023 16:45:52 +0000 (11:45 -0500)
committerEd Maste <emaste@FreeBSD.org>
Wed, 8 Feb 2023 21:04:36 +0000 (16:04 -0500)
commit6ad91c17b0555f0d28377f66fb9f7c8b4cee2b06
tree439eb5d657e1031752e682d8a21624d95806a2de
parent375bb3704d1371dec08f49cf8767f7b98162da34
ssh: Be more paranoid with host/domain names coming from the

never write a name with bad characters to a known_hosts file.

replace recently-added valid_domain() check for hostnames going to
known_hosts with a more relaxed check for bad characters.

Obtained from: OpenSSH-portable commit 445363433ba2
Obtained from: OpenSSH-portable commit 3cae9f92a318
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 2e828220579e3ada74ed0613871ec6ec61d669ba)
crypto/openssh/ssh.c
crypto/openssh/sshconnect.c