Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
knownhosts: fix hashed hostname component count in error message
Correct the component splitting in the nextWord function to omit the initial empty element when decoding the pipe-separated hostname hash. Previously, the error message incorrectly counted this empty element, leading to misleading errors like: knownhosts: got 3 components, want 3 This change makes the component split start from index 1. The existing tests cover the changed code. Signed-off-by: Kimmo Lehto <[email protected]>
- Loading branch information