mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00:00
vfs/cbe_trust_anchor: add sanity check
This patch adds a null-pointer check to the '_close_handle' method, which triggers when using the vfs_cbe.run script in interactive mode.
This commit is contained in:
parent
ca0d3757cc
commit
0fa683f244
@ -544,6 +544,9 @@ class Trust_anchor
|
||||
|
||||
void _close_handle(Vfs::Vfs_handle **handle)
|
||||
{
|
||||
if (*handle == nullptr)
|
||||
return;
|
||||
|
||||
(*handle)->close();
|
||||
(*handle) = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user