vendor: update github.com/pkg/sftp because dep insisted

This commit is contained in:
Nick Craig-Wood 2018-04-13 11:49:30 +01:00
parent ef412c1985
commit 18317a2747
7 changed files with 68 additions and 28 deletions

View file

@ -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
}