2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

check that proc != NULL

This commit is contained in:
Mark Andrews
2003-05-11 02:24:11 +00:00
parent 68aff65208
commit d20c22f634

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: ifiter_ioctl.c,v 1.38 2003/05/01 00:35:33 marka Exp $ */ /* $Id: ifiter_ioctl.c,v 1.39 2003/05/11 02:24:11 marka Exp $ */
/* /*
* Obtain the list of network interfaces using the SIOCGLIFCONF ioctl. * Obtain the list of network interfaces using the SIOCGLIFCONF ioctl.
@@ -887,6 +887,7 @@ static void
internal_destroy(isc_interfaceiter_t *iter) { internal_destroy(isc_interfaceiter_t *iter) {
(void) close(iter->socket); (void) close(iter->socket);
#ifdef __linux #ifdef __linux
if (iter->proc != NULL)
fclose(iter->proc); fclose(iter->proc);
#endif #endif
} }