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:
Norman Feske 2022-12-19 11:01:32 +01:00 committed by Christian Helmuth
parent ca0d3757cc
commit 0fa683f244

View File

@ -544,6 +544,9 @@ class Trust_anchor
void _close_handle(Vfs::Vfs_handle **handle)
{
if (*handle == nullptr)
return;
(*handle)->close();
(*handle) = nullptr;
}