Merge pull request #13610 from yuwata/network-check-one-more-section

network: assorted follow-ups
This commit is contained in:
Yu Watanabe 2019-09-22 07:18:28 +02:00 committed by GitHub
commit fc9d85b9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: systemd\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-04 09:15+0900\n"
"POT-Creation-Date: 2019-09-21 20:13+0900\n"
"PO-Revision-Date: 2018-10-27 07:41+0900\n"
"Last-Translator: Yu Watanabe <watanabe.yu+github@gmail.com>\n"
"Language-Team: \n"
@ -642,7 +642,7 @@ msgid "Revert NTP settings"
msgstr "NTPの設定の破棄"
#: src/network/org.freedesktop.network1.policy:122
msgid "Authentication is required to revert NTP settings."
msgid "Authentication is required to reset NTP settings."
msgstr "NTPの設定を破棄するには認証が必要です。"
#: src/network/org.freedesktop.network1.policy:132
@ -650,7 +650,7 @@ msgid "Revert DNS settings"
msgstr "DNSの設定を破棄"
#: src/network/org.freedesktop.network1.policy:133
msgid "Authentication is required to revert DNS settings."
msgid "Authentication is required to reset DNS settings."
msgstr "DNSの設定を破棄するには認証が必要です。"
#: src/portable/org.freedesktop.portable1.policy:13

View File

@ -300,6 +300,10 @@ int network_verify(Network *network) {
if (section_is_invalid(prefix->section))
prefix_free(prefix);
LIST_FOREACH_SAFE(prefixes, prefix, prefix_next, network->static_route_prefixes)
if (section_is_invalid(prefix->section))
prefix_free(prefix);
LIST_FOREACH_SAFE(rules, rule, rule_next, network->rules)
if (routing_policy_rule_section_verify(rule) < 0)
routing_policy_rule_free(rule);