1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

crypt: fix panic on close after failed seek

This commit is contained in:
Nick Craig-Wood
2016-11-05 10:01:33 +00:00
parent 64b5a76bec
commit d1080d5456

View File

@@ -714,6 +714,9 @@ func (fh *decrypter) Close() error {
}
// Show file now closed
fh.err = ErrorFileClosed
if fh.rc == nil {
return nil
}
return fh.rc.Close()
}