From 057139ce5d2bdbe6fe73c53679e24e9cf007f637 Mon Sep 17 00:00:00 2001 From: Jay Taylor Date: Tue, 8 Jan 2019 20:51:12 +0000 Subject: [PATCH] crypto/ssh/knownhosts: fix out-of-date documentation for checkAddr Change-Id: I03e9cf1ee82b38f15232a48992bae0234bd51f1a GitHub-Last-Rev: fd7b92d97c7b52ae00821bad099cf45ff9836cd1 GitHub-Pull-Request: golang/crypto#71 Reviewed-on: https://go-review.googlesource.com/c/156878 Reviewed-by: Han-Wen Nienhuys Run-TryBot: Han-Wen Nienhuys TryBot-Result: Gobot Gobot --- ssh/knownhosts/knownhosts.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh/knownhosts/knownhosts.go b/ssh/knownhosts/knownhosts.go index bc3db73..260cfe5 100644 --- a/ssh/knownhosts/knownhosts.go +++ b/ssh/knownhosts/knownhosts.go @@ -350,8 +350,8 @@ func (db *hostKeyDB) check(address string, remote net.Addr, remoteKey ssh.Public return db.checkAddr(hostToCheck, remoteKey) } -// checkAddrs checks if we can find the given public key for any of -// the given addresses. If we only find an entry for the IP address, +// checkAddr checks if we can find the given public key for the +// given address. If we only find an entry for the IP address, // or only the hostname, then this still succeeds. func (db *hostKeyDB) checkAddr(a addr, remoteKey ssh.PublicKey) error { // TODO(hanwen): are these the right semantics? What if there