summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-09-13 15:56:42 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-09-13 15:58:02 +0200
commitf0bce9cdd0f2d0e21e0d64cb7b653521d18040e2 (patch)
tree7f242434f300abf921332dd5225ceace082805be /src
parent0ba3278146ee39a06159a520664e0617da113789 (diff)
dhcpv4: fix memset compile issue
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/dhcpv4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c
index a4b6030..6b3d782 100644
--- a/src/dhcpv4.c
+++ b/src/dhcpv4.c
@@ -354,7 +354,7 @@ void dhcpv4_addr_update(struct interface *iface)
struct dhcpv4_assignment *c;
uint32_t mask = iface->dhcpv4_mask.s_addr;
- memset(&ip, sizeof(ip), 0);
+ memset(&ip, 0, sizeof(ip));
ip.addr.in = iface->dhcpv4_local;
ip.prefix = odhcpd_netmask2bitlen(false, &iface->dhcpv4_mask);
ip.broadcast = iface->dhcpv4_bcast;