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
1 changed files with 3 additions and 0 deletions

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()
}