mirror of
https://github.com/vgough/encfs.git
synced 2025-01-08 06:59:40 +01:00
add filehandle null check
This commit is contained in:
parent
3497828816
commit
9d998ca668
@ -136,7 +136,7 @@ static int withFileNode(const char *opName, const char *path,
|
|||||||
return op(fnode);
|
return op(fnode);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (fi != nullptr)
|
if (fi != nullptr && fi->fh != 0)
|
||||||
res = do_op(reinterpret_cast<FileNode *>(fi->fh));
|
res = do_op(reinterpret_cast<FileNode *>(fi->fh));
|
||||||
else
|
else
|
||||||
res = do_op(FSRoot->lookupNode(path, opName).get());
|
res = do_op(FSRoot->lookupNode(path, opName).get());
|
||||||
|
Loading…
Reference in New Issue
Block a user