crypt: fix panic on close after failed seek
This commit is contained in:
parent
64b5a76bec
commit
d1080d5456
1 changed files with 3 additions and 0 deletions
|
@ -714,6 +714,9 @@ func (fh *decrypter) Close() error {
|
||||||
}
|
}
|
||||||
// Show file now closed
|
// Show file now closed
|
||||||
fh.err = ErrorFileClosed
|
fh.err = ErrorFileClosed
|
||||||
|
if fh.rc == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return fh.rc.Close()
|
return fh.rc.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue