aboutsummaryrefslogtreecommitdiff
path: root/libntp/netof.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/netof.c')
-rw-r--r--libntp/netof.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libntp/netof.c b/libntp/netof.c
index 55a4092befe1..c8831c3dd9cd 100644
--- a/libntp/netof.c
+++ b/libntp/netof.c
@@ -2,6 +2,7 @@
* netof - return the net address part of an ip address in a sockaddr_storage structure
* (zero out host part)
*/
+#include <config.h>
#include <stdio.h>
#include <syslog.h>
@@ -42,7 +43,7 @@ netof(
} else if (IS_IPV6(netaddr))
/* assume the typical /64 subnet size */
- memset(&NSRCADR6(netaddr)[8], 0, 8);
+ zero_mem(&NSRCADR6(netaddr)[8], 8);
#ifdef DEBUG
else {
msyslog(LOG_ERR, "netof unknown AF %d", AF(netaddr));