mirror of https://github.com/pkg/sftp.git
bug: doesn't return buf.Err
This commit is contained in:
parent
bd61319b07
commit
5a5e762d06
|
@ -196,7 +196,7 @@ func (p *NamePacket) UnmarshalPacketBody(buf *Buffer) (err error) {
|
|||
p.Entries = append(p.Entries, &e)
|
||||
}
|
||||
|
||||
return nil
|
||||
return buf.Err
|
||||
}
|
||||
|
||||
// AttrsPacket defines the SSH_FXP_ATTRS packet.
|
||||
|
|
Loading…
Reference in New Issue