* interpret, for example dracut and SUSE Linux. */
if (proc_cmdline_key_streq(key, "nameserver")) {
+
+ if (proc_cmdline_value_missing(key, value))
+ return 0;
+
if (!info->dns_server_unlinked) {
/* The kernel command line overrides any prior configuration */
dns_server_unlink_all(manager_get_first_dns_server(info->manager, DNS_SERVER_SYSTEM));
} else if (proc_cmdline_key_streq(key, "domain")) {
+ if (proc_cmdline_value_missing(key, value))
+ return 0;
+
if (!info->search_domain_unlinked) {
dns_search_domain_unlink_all(info->manager->search_domains);
info->search_domain_unlinked = true;