mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-07 17:17:44 +03:00
network do not ignore OOM error in config_parse_macsec_key_id()
This commit is contained in:
parent
696c0832e2
commit
2ca601d8cb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user