]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't start ICMP if we're just testing a lease file.
authorTed Lemon <source@isc.org>
Thu, 1 Mar 2001 22:11:50 +0000 (22:11 +0000)
committerTed Lemon <source@isc.org>
Thu, 1 Mar 2001 22:11:50 +0000 (22:11 +0000)
server/dhcpd.c

index f1f9e9f68fa2a80b0a380f52f00ef5c5d76c723a..3504565aab5d37cdda2b0647a8cb8024ddb33aa9 100644 (file)
@@ -43,7 +43,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcpd.c,v 1.112 2001/02/22 00:18:54 mellon Exp $ Copyright 1995-2001 Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.113 2001/03/01 22:11:50 mellon Exp $ Copyright 1995-2001 Internet Software Consortium.";
 #endif
 
   static char copyright[] =
@@ -439,7 +439,8 @@ int main (argc, argv, envp)
 #endif
 
        /* Initialize icmp support... */
-       icmp_startup (1, lease_pinged);
+       if (!cftest && !lftest)
+               icmp_startup (1, lease_pinged);
 
 #if defined (TRACING)
        if (traceinfile) {