mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
netlink: fix flags use in nm_netlink_route_add
Flags are not getting set when a route is added (e.g. NLM_F_REPLACE). Apparently this was fixed in Ubuntu, but I didn't see a patch here, so here it is.
This commit is contained in:
parent
43a6f8a003
commit
d2069c56e8
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ int nm_netlink_route_add(struct rtnl_route * route,
|
|||
}
|
||||
}
|
||||
|
||||
err = rtnl_route_add (sk, route, 0);
|
||||
err = rtnl_route_add (sk, route, flags);
|
||||
|
||||
/* LIBNL Bug: Aliased ESRCH */
|
||||
if (err == -NLE_FAILURE)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue