Commit d61a312c authored by Dan Williams's avatar Dan Williams

libnm-util: make sure NULL secrets don't slip in via g_object_set()

We already do this for nm_setting_vpn_add_secret()
parent c7ec68e0
......@@ -442,6 +442,8 @@ finalize (GObject *object)
static void
copy_hash (gpointer key, gpointer value, gpointer user_data)
g_return_if_fail (value != NULL);
g_return_if_fail (strlen (value));
g_hash_table_insert ((GHashTable *) user_data, g_strdup (key), g_strdup (value));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment