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();
|
return log_oom();
|
||||||
|
|
||||||
r = unhexmem(rvalue, strlen(rvalue), &p, &l);
|
r = unhexmem(rvalue, strlen(rvalue), &p, &l);
|
||||||
|
if (r == -ENOMEM)
|
||||||
|
return log_oom();
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse KeyId \"%s\": %m", rvalue);
|
log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse KeyId \"%s\": %m", rvalue);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue