]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a parenthetification error.
authorTed Lemon <source@isc.org>
Thu, 1 Jul 1999 20:02:58 +0000 (20:02 +0000)
committerTed Lemon <source@isc.org>
Thu, 1 Jul 1999 20:02:58 +0000 (20:02 +0000)
server/bootp.c
server/dhcp.c

index 329a8756e93269d669c04493f3e9b62f358f6716..18612cc06a48098bcfbc0c51fd035bb58f4acd89 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bootp.c,v 1.48 1999/06/22 13:25:23 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bootp.c,v 1.49 1999/07/01 20:02:58 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -214,8 +214,8 @@ void bootp (packet)
 
        /* If we're always supposed to broadcast to this client, set
           the broadcast bit in the bootp flags field. */
-       if (oc = lookup_option (&server_universe,
-                               options, SV_ALWAYS_BROADCAST) &&
+       if ((oc = lookup_option (&server_universe,
+                               options, SV_ALWAYS_BROADCAST)) &&
            evaluate_boolean_option_cache (packet, packet -> options, oc))
                raw.flags |= htons (BOOTP_BROADCAST);
 
index cc9f67b70535fe03c01d74281accbdfbf4012a61..ac12cd99a32fefba88d7a5e18696b6095cd3fdc8 100644 (file)
@@ -22,7 +22,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.94 1999/07/01 19:58:12 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.95 1999/07/01 20:02:57 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1227,8 +1227,8 @@ void ack_lease (packet, lease, offer, when, msg)
 
        /* If we're always supposed to broadcast to this client, set
           the broadcast bit in the bootp flags field. */
-       if (oc = lookup_option (&server_universe, state -> options,
-                               SV_ALWAYS_BROADCAST) &&
+       if ((oc = lookup_option (&server_universe, state -> options,
+                               SV_ALWAYS_BROADCAST)) &&
            evaluate_boolean_option_cache (packet, packet -> options, oc))
                state -> bootp_flags |= htons (BOOTP_BROADCAST);