From d20c22f634a9f7f774ff29ea9f11e9b3231a3e20 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sun, 11 May 2003 02:24:11 +0000 Subject: [PATCH] check that proc != NULL --- lib/isc/unix/ifiter_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/isc/unix/ifiter_ioctl.c b/lib/isc/unix/ifiter_ioctl.c index 90c6843482..1b75bb073e 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.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. @@ -887,7 +887,8 @@ static void internal_destroy(isc_interfaceiter_t *iter) { (void) close(iter->socket); #ifdef __linux - fclose(iter->proc); + if (iter->proc != NULL) + fclose(iter->proc); #endif }