]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
memset the entire lifc structure
authorMark Andrews <marka@isc.org>
Thu, 1 May 2003 00:35:33 +0000 (00:35 +0000)
committerMark Andrews <marka@isc.org>
Thu, 1 May 2003 00:35:33 +0000 (00:35 +0000)
lib/isc/unix/ifiter_ioctl.c

index fab1b8cfd487e98eb22f77808a08d51764613a0b..90c6843482b8c3cc8a4256c4c801b13db4ec9d9a 100644 (file)
@@ -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