mirror of
https://github.com/systemd/systemd.git
synced 2025-01-17 06:04:07 +03:00
network/neighbor: add missing OOM check
This commit is contained in:
parent
9f640614a6
commit
be26893c85
@ -530,6 +530,8 @@ int manager_rtnl_process_neighbor(sd_netlink *rtnl, sd_netlink_message *message,
|
||||
return 0;
|
||||
|
||||
tmp = new0(Neighbor, 1);
|
||||
if (!tmp)
|
||||
return log_oom();
|
||||
|
||||
/* First, retrieve the fundamental information about the neighbor. */
|
||||
r = sd_rtnl_message_neigh_get_family(message, &tmp->family);
|
||||
|
Loading…
x
Reference in New Issue
Block a user