mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Add null pointer checks for FileInfo/DirInfo
This commit is contained in:
parent
1220befacf
commit
80aead7085
4 changed files with 14 additions and 0 deletions
|
|
@ -51,5 +51,8 @@ FUSE::fsync(const fuse_req_ctx_t *ctx_,
|
|||
{
|
||||
FileInfo *fi = FileInfo::from_fh(fh_);
|
||||
|
||||
if(not fi)
|
||||
return -EBADF;
|
||||
|
||||
return ::_fsync(fi->fd,isdatasync_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue