summaryrefslogtreecommitdiff
path: root/src/dhcp/nm-dhcp-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dhcp/nm-dhcp-options.c')
-rw-r--r--src/dhcp/nm-dhcp-options.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dhcp/nm-dhcp-options.c b/src/dhcp/nm-dhcp-options.c
index 0cefd51b1e..b41ca2c941 100644
--- a/src/dhcp/nm-dhcp-options.c
+++ b/src/dhcp/nm-dhcp-options.c
@@ -222,6 +222,7 @@ nm_dhcp_option_take_option (GHashTable *options,
nm_assert (options);
nm_assert (requests);
nm_assert (value);
+ nm_assert (g_utf8_validate (value, -1, NULL));
g_hash_table_insert (options,
(gpointer) nm_dhcp_option_request_string (requests, option),