]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: fix copy and paste mistake
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 6 Jan 2020 10:32:22 +0000 (19:32 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jan 2020 18:18:19 +0000 (19:18 +0100)
src/libsystemd/sd-netlink/rtnl-message.c

index 71d2bf0f8b7bb009d95b84cdffbbf8a5988b97ac..182a666746055ff6210e02ba1bcc63fe2f0c13cc 100644 (file)
@@ -512,8 +512,8 @@ int sd_rtnl_message_new_link(sd_netlink *rtnl, sd_netlink_message **ret,
 
         if (nlmsg_type == RTM_NEWLINK)
                 (*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_EXCL;
-        else if (nlmsg_type == RTM_NEWLINK)
-                (*ret)->hdr->nlmsg_flags |= NLM_F_EXCL | NLM_F_CREATE | NLM_F_APPEND;
+        else if (nlmsg_type == RTM_NEWLINKPROP)
+                (*ret)->hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_EXCL | NLM_F_APPEND;
 
         ifi = NLMSG_DATA((*ret)->hdr);