]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix operator precedence bug
authorTed Lemon <source@isc.org>
Mon, 2 Jun 1997 23:28:18 +0000 (23:28 +0000)
committerTed Lemon <source@isc.org>
Mon, 2 Jun 1997 23:28:18 +0000 (23:28 +0000)
relay/dhcrelay.c

index 6c63fb04aae341eec57cbb73a8388699cda21091..0db41acba8177b175078b6e1eab9cdf07f9b82d8 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcrelay.c,v 1.6 1997/03/29 03:30:44 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcrelay.c,v 1.7 1997/06/02 23:28:18 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -198,7 +198,7 @@ void relay (ip, packbuf, length, from_port, from, hfrom)
        /* If it's a bootreply, forward it to the client. */
        if (packet -> op == BOOTREPLY) {
 #ifndef USE_FALLBACK
-               if (!packet -> flags & htons (BOOTP_BROADCAST)) {
+               if (!(packet -> flags & htons (BOOTP_BROADCAST))) {
                        to.sin_addr = packet -> ciaddr;
                        to.sin_port = remote_port;
                } else