From: Mark Andrews Date: Thu, 1 May 2003 00:35:33 +0000 (+0000) Subject: memset the entire lifc structure X-Git-Tag: v9.2.3rc1~104^2~12 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=1f58c4556686f992faf35c79bec19b0280aa0e84;p=thirdparty%2Fbind9.git memset the entire lifc structure --- diff --git a/lib/isc/unix/ifiter_ioctl.c b/lib/isc/unix/ifiter_ioctl.c index fab1b8cfd48..90c6843482b 100644 --- a/lib/isc/unix/ifiter_ioctl.c +++ b/lib/isc/unix/ifiter_ioctl.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: ifiter_ioctl.c,v 1.37 2003/02/24 01:46:11 marka Exp $ */ +/* $Id: ifiter_ioctl.c,v 1.38 2003/05/01 00:35:33 marka Exp $ */ /* * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl. @@ -180,7 +180,7 @@ getbuf6(isc_interfaceiter_t *iter) { if (iter->buf == NULL) return (ISC_R_NOMEMORY); - memset(&iter->lifc.lifc_len, 0, sizeof(iter->lifc.lifc_len)); + memset(&iter->lifc, 0, sizeof(iter->lifc)); #ifdef ISC_HAVE_LIFC_FAMILY iter->lifc.lifc_family = AF_UNSPEC; #endif