commit | 12d3767ba4c84c32150cbe6ff6494498780f12c9 | [log] [tgz] |
---|---|---|
author | djm@openbsd.org <djm@openbsd.org> | Fri Mar 03 06:13:11 2017 +0000 |
committer | Damien Miller <djm@mindrot.org> | Fri Mar 03 17:14:35 2017 +1100 |
tree | 554224f6768995379f37b2964e447458b841fc03 | |
parent | d7abb771bd5a941b26144ba400a34563a1afa589 [diff] |
upstream commit fix ssh-keygen -H accidentally corrupting known_hosts that contained already-hashed entries. HKF_MATCH_HOST_HASHED is only set by hostkeys_foreach() when hostname matching is in use, so we need to look for the hash marker explicitly. Upstream-ID: da82ad653b93e8a753580d3cf5cd448bc2520528