diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-04-25 13:42:00 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-04-25 13:44:24 +0200 |
commit | fa647aa978a1fb6408798e365617529c2b7e53c7 (patch) | |
tree | bcc08726a07de1b7eb9b030d683b631e65963b28 /src/libsystemd | |
parent | 4f4d6ee4be1c5d3bb2f3ebce7d2d332285963830 (diff) |
sd-netlink: permit RTM_DELLINK messages with no ifindex
This is useful for removing network interfaces by name.
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-netlink/rtnl-message.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/rtnl-message.c b/src/libsystemd/sd-netlink/rtnl-message.c index 255526bf32..f251536a89 100644 --- a/src/libsystemd/sd-netlink/rtnl-message.c +++ b/src/libsystemd/sd-netlink/rtnl-message.c @@ -402,7 +402,6 @@ int sd_rtnl_message_new_link(sd_netlink *rtnl, sd_netlink_message **ret, int r; assert_return(rtnl_message_type_is_link(nlmsg_type), -EINVAL); - assert_return(nlmsg_type != RTM_DELLINK || index > 0, -EINVAL); assert_return(ret, -EINVAL); r = message_new(rtnl, ret, nlmsg_type); |