]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
protect snmpConnectionClose
authorwessels <>
Wed, 11 Feb 1998 05:28:57 +0000 (05:28 +0000)
committerwessels <>
Wed, 11 Feb 1998 05:28:57 +0000 (05:28 +0000)
src/main.cc

index 397ff690e16ba37834f7cc57dbac08d1302c5b78..ecb656c5d95a527eec64d32106c6d72fd342acac 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.216 1998/02/10 21:44:34 wessels Exp $
+ * $Id: main.cc,v 1.217 1998/02/10 22:28:57 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -599,7 +599,9 @@ main(int argc, char **argv)
        case COMM_SHUTDOWN:
            /* delayed close so we can transmit while shutdown pending */
            icpConnectionClose();
+#ifdef SQUID_SNMP
            snmpConnectionClose();
+#endif
            if (shutdown_pending) {
                normal_shutdown();
 #if 0