mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
network: drop assertions to check link state in netlink callback handlers
As, the link may be dropped while configuring addresses or routes. Fixes #17920.
This commit is contained in:
parent
239952e890
commit
b2219cc4b6
@ -932,8 +932,6 @@ static int address_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link)
|
||||
assert(link);
|
||||
assert(link->ifname);
|
||||
assert(link->address_messages > 0);
|
||||
assert(IN_SET(link->state, LINK_STATE_CONFIGURING,
|
||||
LINK_STATE_FAILED, LINK_STATE_LINGER));
|
||||
|
||||
link->address_messages--;
|
||||
|
||||
|
@ -1192,8 +1192,6 @@ static int route_handler(sd_netlink *rtnl, sd_netlink_message *m, Link *link) {
|
||||
|
||||
assert(link);
|
||||
assert(link->route_messages > 0);
|
||||
assert(IN_SET(link->state, LINK_STATE_CONFIGURING,
|
||||
LINK_STATE_FAILED, LINK_STATE_LINGER));
|
||||
|
||||
link->route_messages--;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user