rtnl: fix for 32bits

Commit 0a0dc69b65 broke tests for 32 bits
This commit is contained in:
Marc-Antoine Perennou 2013-12-17 14:13:57 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent e7335f5491
commit b9eaf3d1eb

View file

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