Coverity:
CID 739670 (#1 of 1): Out-of-bounds access (OVERRUN)
At (46): Overrunning struct type in_addr of 4 bytes by passing it to a
function which accesses it at byte offset 15 using argument
"16UL".
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
ifa->cnf = get_default_if_config();
ifa->host_emul = true;
- memcpy(&ifa->hemu_ip, &in, sizeof(union olsr_ip_addr));
+ memset(&ifa->hemu_ip, 0, sizeof(ifa->hemu_ip));
+ memcpy(&ifa->hemu_ip, &in, sizeof(in));
cnf->host_emul = true;
continue;