From 3ff8d5e7819c885e7c9eaa7af4ba2291abfc1098 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 Oct 2010 15:51:21 -0400 Subject: [PATCH] Use memset() instead of zero_bytes() since we don't include sudoers.h --- src/net_ifs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net_ifs.c b/src/net_ifs.c index 10a34edad..2284b5cce 100644 --- a/src/net_ifs.c +++ b/src/net_ifs.c @@ -275,7 +275,7 @@ get_net_ifs(char **addrinfo) continue; #ifdef SIOCGIFFLAGS - zero_bytes(&ifr_tmp, sizeof(ifr_tmp)); + memset(&ifr_tmp, 0, sizeof(ifr_tmp)); strncpy(ifr_tmp.ifr_name, ifr->ifr_name, sizeof(ifr_tmp.ifr_name) - 1); if (ioctl(sock, SIOCGIFFLAGS, (caddr_t) &ifr_tmp) < 0) #endif @@ -300,7 +300,7 @@ get_net_ifs(char **addrinfo) previfname = ifr->ifr_name; /* Get the netmask. */ - zero_bytes(&ifr_tmp, sizeof(ifr_tmp)); + memset(&ifr_tmp, 0, sizeof(ifr_tmp)); strncpy(ifr_tmp.ifr_name, ifr->ifr_name, sizeof(ifr_tmp.ifr_name) - 1); #ifdef _ISC STRSET(SIOCGIFNETMASK, (caddr_t) &ifr_tmp, sizeof(ifr_tmp)); -- 2.40.0