From: gsoares Date: Thu, 6 Apr 2017 12:22:32 +0000 (+0000) Subject: use memset() instead of bzero() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a0e3979fb11664332546d5713970e0854369c6f3;p=openbsd use memset() instead of bzero() OK jmatthew --- 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 @@ -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);