Fix SSH2 conditonal in key parsing code (#8806)
Avoid out of bounds error by using strings.HasPrefix to check for starting SSH2 text rather than assuming user input has at least 31 characters. Add tests for bad input as well. Fixes #8800tokarchuk/v1.17
parent
022d2d8beb
commit
dce22efbee
Loading…
Reference in new issue