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
|
|
@ -43,5 +43,8 @@ FUSE::fsyncdir(const fuse_req_ctx_t *ctx_,
|
|||
{
|
||||
DirInfo *di = DirInfo::from_fh(ffi_->fh);
|
||||
|
||||
if(not di)
|
||||
return -EBADF;
|
||||
|
||||
return ::_fsyncdir(di,isdatasync_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue