mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-28 18:57:37 +00:00
trivial: Clear any device checksums before doing device::verify
This commit is contained in:
parent
f556d371da
commit
ababbb7ae1
@ -793,11 +793,16 @@ fu_plugin_runner_verify (FuPlugin *plugin,
|
||||
{
|
||||
FuPluginPrivate *priv = GET_PRIVATE (plugin);
|
||||
FuPluginVerifyFunc func = NULL;
|
||||
GPtrArray *checksums;
|
||||
|
||||
/* not enabled */
|
||||
if (!priv->enabled)
|
||||
return TRUE;
|
||||
|
||||
/* clear any existing verification checksums */
|
||||
checksums = fu_device_get_checksums (device);
|
||||
g_ptr_array_set_size (checksums, 0);
|
||||
|
||||
/* optional */
|
||||
g_module_symbol (priv->module, "fu_plugin_verify", (gpointer *) &func);
|
||||
if (func == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user