forked from TrueCloudLab/rclone
vendor: update github.com/pkg/sftp because dep insisted
This commit is contained in:
parent
ef412c1985
commit
18317a2747
7 changed files with 68 additions and 28 deletions
4
vendor/github.com/pkg/sftp/packet-typing.go
generated
vendored
4
vendor/github.com/pkg/sftp/packet-typing.go
generated
vendored
|
@ -127,7 +127,9 @@ func makePacket(p rxPacket) (requestPacket, error) {
|
|||
return nil, errors.Errorf("unhandled packet type: %s", p.pktType)
|
||||
}
|
||||
if err := pkt.UnmarshalBinary(p.pktBytes); err != nil {
|
||||
return nil, err
|
||||
// Return partially unpacked packet to allow callers to return
|
||||
// error messages appropriately with necessary id() method.
|
||||
return pkt, err
|
||||
}
|
||||
return pkt, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue