mirror of
https://git.proxmox.com/git/fwupd
synced 2025-06-14 16:01:08 +00:00
fu-main: Fix sender_features insert with wrong size
This commit is contained in:
parent
229bd1a0b5
commit
2bb19eae60
@ -1534,11 +1534,13 @@ fu_main_daemon_method_call (GDBusConnection *connection, const gchar *sender,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (g_strcmp0 (method_name, "SetFeatureFlags") == 0) {
|
if (g_strcmp0 (method_name, "SetFeatureFlags") == 0) {
|
||||||
guint64 feature_flags = 0;
|
FwupdFeatureFlags feature_flags;
|
||||||
g_variant_get (parameters, "(t)", &feature_flags);
|
guint64 feature_flags_u64 = 0;
|
||||||
g_debug ("Called %s(%" G_GUINT64_FORMAT ")", method_name, feature_flags);
|
g_variant_get (parameters, "(t)", &feature_flags_u64);
|
||||||
|
g_debug ("Called %s(%" G_GUINT64_FORMAT ")", method_name, feature_flags_u64);
|
||||||
|
|
||||||
/* old flags for the same sender will be automatically destroyed */
|
/* old flags for the same sender will be automatically destroyed */
|
||||||
|
feature_flags = feature_flags_u64;
|
||||||
g_hash_table_insert (priv->sender_features,
|
g_hash_table_insert (priv->sender_features,
|
||||||
g_strdup (sender),
|
g_strdup (sender),
|
||||||
g_memdup (&feature_flags, sizeof(feature_flags)));
|
g_memdup (&feature_flags, sizeof(feature_flags)));
|
||||||
|
Loading…
Reference in New Issue
Block a user