network do not ignore OOM error in config_parse_macsec_key_id()

This commit is contained in:
Yu Watanabe 2020-09-10 13:40:50 +09:00
parent 696c0832e2
commit 2ca601d8cb
1 changed files with 2 additions and 0 deletions

View File

@ -847,6 +847,8 @@ int config_parse_macsec_key_id(
return log_oom();
r = unhexmem(rvalue, strlen(rvalue), &p, &l);
if (r == -ENOMEM)
return log_oom();
if (r < 0) {
log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse KeyId \"%s\": %m", rvalue);
return 0;