[systemd-devel] [PATCH] rtnl: fix for 32bits

Marc-Antoine Perennou Marc-Antoine at Perennou.com
Mon Dec 16 21:13:57 PST 2013


Commit 0a0dc69b655cfb10cab39133f5d521e7b35ce3d5 broke tests for 32 bits
---
 src/libsystemd-rtnl/rtnl-message.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libsystemd-rtnl/rtnl-message.c b/src/libsystemd-rtnl/rtnl-message.c
index 264cca0..c62eca9 100644
--- a/src/libsystemd-rtnl/rtnl-message.c
+++ b/src/libsystemd-rtnl/rtnl-message.c
@@ -601,7 +601,7 @@ int sd_rtnl_message_append_ether_addr(sd_rtnl_message *m, unsigned short type, c
                         return -ENOTSUP;
         }
 
-        r = add_rtattr(m, type, data, sizeof(data));
+        r = add_rtattr(m, type, data, ETH_ALEN);
         if (r < 0)
                 return r;
 
-- 
1.8.5.1



More information about the systemd-devel mailing list