revert-54069ad305 #11

Closed
bagas wants to merge 217 commits from revert-54069ad305 into main
2 changed files with 1446 additions and 2 deletions
Showing only changes of commit 14abac6579 - Show all commits
+3 -1
View File
@@ -412,9 +412,11 @@ func readSSHString(reader io.Reader) (string, error) {
return "", err
}
strBytes := make([]byte, length)
if _, err := reader.Read(strBytes); err != nil {
if length > 0 {
if _, err := io.ReadFull(reader, strBytes); err != nil {
return "", err
}
}
return string(strBytes), nil
}
File diff suppressed because it is too large Load Diff