mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:22:09 -04:00
memset the entire lifc structure
This commit is contained in:
parent
263d29227a
commit
1f58c45566
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue