]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix backup_cutoff handling.
authorTed Lemon <source@isc.org>
Thu, 9 Apr 1998 04:26:24 +0000 (04:26 +0000)
committerTed Lemon <source@isc.org>
Thu, 9 Apr 1998 04:26:24 +0000 (04:26 +0000)
client/dhclient.c

index 4a76dc5e28d4c4b07d0867d3349b1bf7ddf3f19a..785c9148ee40564e67fc748488be3d6b6e550dc6 100644 (file)
@@ -56,7 +56,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhclient.c,v 1.48 1998/03/16 06:08:41 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhclient.c,v 1.49 1998/04/09 04:26:24 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -991,8 +991,8 @@ void send_discover (ipp)
                    ip -> client -> config -> backoff_cutoff)
                        ip -> client -> interval =
                                ((ip -> client -> config -> backoff_cutoff / 2)
-                                + ((random () >> 2)
-                                   % ip -> client -> interval));
+                                + ((random () >> 2) %
+                                   ip -> client -> config -> backoff_cutoff));
        } else if (!ip -> client -> interval)
                ip -> client -> interval =
                        ip -> client -> config -> initial_interval;