forked from TrueCloudLab/rclone
vendor: update all dependencies
This commit is contained in:
parent
d1a39dcc4b
commit
af192d2507
232 changed files with 15744 additions and 1710 deletions
2
vendor/github.com/pkg/sftp/packet.go
generated
vendored
2
vendor/github.com/pkg/sftp/packet.go
generated
vendored
|
@ -802,7 +802,7 @@ func (p *sshFxpDataPacket) UnmarshalBinary(b []byte) error {
|
|||
} else if p.Length, b, err = unmarshalUint32Safe(b); err != nil {
|
||||
return err
|
||||
} else if uint32(len(b)) < p.Length {
|
||||
return errors.New("truncated packet")
|
||||
return errShortPacket
|
||||
}
|
||||
|
||||
p.Data = make([]byte, p.Length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue