Commit d18c8ad0 authored by Norbert Lange's avatar Norbert Lange Committed by Philippe Gerum

smokey/net_common: fix one out-of-bounds access

Signed-off-by: 's avatarNorbert Lange <norbert.lange@andritz.com>
parent 984d1343
......@@ -89,7 +89,7 @@ rtnet_rtcfg_add_client(int fd, const char *hwaddr, const char *ipaddr)
cmd.args.add.ip_addr = ip.s_addr;
cmd.args.add.timeout = 3000;
memcpy(cmd.args.add.mac_addr, mac.ether_addr_octet,
sizeof(cmd.args.add.mac_addr));
sizeof(mac.ether_addr_octet));
check_unix(ioctl(fd, RTCFG_IOC_ADD, &cmd));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment