]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Put parentheses around & operations
authorTed Lemon <source@isc.org>
Thu, 6 Mar 1997 20:23:27 +0000 (20:23 +0000)
committerTed Lemon <source@isc.org>
Thu, 6 Mar 1997 20:23:27 +0000 (20:23 +0000)
server/dhcp.c

index 1d1f6d187bb3ac4134ca096f46a1d88111976b9c..01ad161bbb09132499d6754dcd87a0f33b069347 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.45 1997/03/06 19:30:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.46 1997/03/06 20:23:27 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -1041,7 +1041,8 @@ struct lease *find_lease (packet, share)
                                if (uid_lease -> shared_network == share)
                                        break;
                        fixed_lease = (struct lease *)0;
-                       if (uid_lease && uid_lease -> flags & ABANDONED_LEASE)
+                       if (uid_lease &&
+                           (uid_lease -> flags & ABANDONED_LEASE))
                                uid_lease = (struct lease *)0;
                }
        } else {
@@ -1070,7 +1071,7 @@ struct lease *find_lease (packet, share)
        for (; hw_lease; hw_lease = hw_lease -> n_hw)
                if (hw_lease -> shared_network == share)
                        break;
-       if (hw_lease && hw_lease -> flags & ABANDONED_LEASE)
+       if (hw_lease && (hw_lease -> flags & ABANDONED_LEASE))
                hw_lease = (struct lease *)0;
 
        /* Try to find a lease that's been allocated to the client's