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:
Alfredo Matos 2011-09-13 11:25:59 +01:00 committed by Dan Williams
parent 43a6f8a003
commit d2069c56e8

View file

@ -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)