From: Alan T. DeKok Date: Fri, 31 Jul 2020 13:51:21 +0000 (-0400) Subject: don't need to take address of ipaddr X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93ebbf205779d790907ab3bf595a348ea49f1372;p=thirdparty%2Ffreeradius-server.git don't need to take address of ipaddr it's already a pointer --- diff --git a/src/protocols/arp/base.c b/src/protocols/arp/base.c index 62bf3e001d0..aaa85e2a186 100644 --- a/src/protocols/arp/base.c +++ b/src/protocols/arp/base.c @@ -114,7 +114,7 @@ int fr_arp_entry_add(int fd, char const *interface, uint8_t ipaddr[static 4], ui memset(&req, 0, sizeof(req)); sin = (struct sockaddr_in *) &req.arp_pa; sin->sin_family = AF_INET; - memcpy(&sin->sin_addr.s_addr, &ipaddr, 4); + memcpy(&sin->sin_addr.s_addr, ipaddr, 4); strlcpy(req.arp_dev, interface, sizeof(req.arp_dev));