mirror of
https://github.com/vgough/encfs.git
synced 2025-01-06 22:18:47 +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);
|
||||
};
|
||||
|
||||
if (fi != nullptr)
|
||||
if (fi != nullptr && fi->fh != 0)
|
||||
res = do_op(reinterpret_cast<FileNode *>(fi->fh));
|
||||
else
|
||||
res = do_op(FSRoot->lookupNode(path, opName).get());
|
||||
|
Loading…
Reference in New Issue
Block a user