diff --git a/contrib/ntp/ntpd/ntp_io.c b/contrib/ntp/ntpd/ntp_io.c index 6ab7d267d8a2..e209d6d29c1f 100644 --- a/contrib/ntp/ntpd/ntp_io.c +++ b/contrib/ntp/ntpd/ntp_io.c @@ -444,7 +444,7 @@ create_sockets( continue; } # endif /* SYS_WINNT */ - ifreq = *ifr; + memcpy(&ifreq, ifr, sizeof(ifreq)); inter_list[i].flags = 0; /* is it broadcast capable? */ # ifndef SYS_WINNT