summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgsoares <gsoares@openbsd.org>2017-04-06 12:22:32 +0000
committergsoares <gsoares@openbsd.org>2017-04-06 12:22:32 +0000
commita0e3979fb11664332546d5713970e0854369c6f3 (patch)
tree09085f3373ecf7c49dabd869e059163a98424f08
parentfix format string found by clang -Wformat-security (diff)
downloadwireguard-openbsd-a0e3979fb11664332546d5713970e0854369c6f3.tar.xz
wireguard-openbsd-a0e3979fb11664332546d5713970e0854369c6f3.zip
use memset() instead of bzero()
OK jmatthew
-rw-r--r--usr.sbin/ldapd/parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ldapd/parse.y b/usr.sbin/ldapd/parse.y
index 11e250276bf..0ef43f484bb 100644
--- a/usr.sbin/ldapd/parse.y
+++ b/usr.sbin/ldapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.23 2017/01/20 11:55:08 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.24 2017/04/06 12:22:32 gsoares Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
@@ -933,7 +933,7 @@ host_v4(const char *s, in_port_t port)
struct sockaddr_in *sain;
struct listener *h;
- bzero(&ina, sizeof(ina));
+ memset(&ina, 0, sizeof(ina));
if (inet_pton(AF_INET, s, &ina) != 1)
return (NULL);
@@ -955,7 +955,7 @@ host_v6(const char *s, in_port_t port)
struct sockaddr_in6 *sin6;
struct listener *h;
- bzero(&ina6, sizeof(ina6));
+ memset(&ina6, 0, sizeof(ina6));
if (inet_pton(AF_INET6, s, &ina6) != 1)
return (NULL);
@@ -980,7 +980,7 @@ host_dns(const char *s, const char *cert,
struct sockaddr_in6 *sin6;
struct listener *h;
- bzero(&hints, sizeof(hints));
+ memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM; /* DUMMY */
error = getaddrinfo(s, NULL, &hints, &res0);