diff options
author | Thomas Haller <thaller@redhat.com> | 2022-12-13 08:36:59 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2022-12-19 11:33:42 +0100 |
commit | 2535395a8cf34ded6d4d5c8d2a25eec6ab1abe1d (patch) | |
tree | e8e5befca3dc83dff600f4a9335593ceed9f3f30 | |
parent | 63a6bc1bc92ce98488d2cc18ad72e20c1b50da73 (diff) |
dhcp: use nm_dhcp_option_create_options_dict() in nm_dhcp_client_handle_event()
The point of using this trivial helper function is to have one function
that is related to the construction of the options dictionary, that we
can search for.
It answers the question, where do we create a option hash (at `git grep
nm_dhcp_option_create_options_dict`).
(cherry picked from commit ccbe76b81d2bb49d290b01dcf5e9f391279115c6)
-rw-r--r-- | src/core/dhcp/nm-dhcp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dhcp/nm-dhcp-client.c b/src/core/dhcp/nm-dhcp-client.c index 4a2263e76c..7f507e2e1c 100644 --- a/src/core/dhcp/nm-dhcp-client.c +++ b/src/core/dhcp/nm-dhcp-client.c @@ -1612,7 +1612,7 @@ nm_dhcp_client_handle_event(gpointer unused, GVariant *value; /* Copy options */ - str_options = g_hash_table_new_full(nm_str_hash, g_str_equal, g_free, g_free); + str_options = nm_dhcp_option_create_options_dict(FALSE); g_variant_iter_init(&iter, options); while (g_variant_iter_next(&iter, "{&sv}", &name, &value)) { maybe_add_option(self, str_options, name, value); |