]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
check that proc != NULL
authorMark Andrews <marka@isc.org>
Sun, 11 May 2003 02:24:11 +0000 (02:24 +0000)
committerMark Andrews <marka@isc.org>
Sun, 11 May 2003 02:24:11 +0000 (02:24 +0000)
lib/isc/unix/ifiter_ioctl.c

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