diff options
author | Ted Lemon <source@isc.org> | 1997-06-02 23:28:18 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-06-02 23:28:18 +0000 |
commit | 274d24ab8bd8d5e43db194cb7d3bee5d50bf4cac (patch) | |
tree | a05071ee00c92b86d8f27d662d070ba1028d3add /relay | |
parent | ee31d9923a737a817eeb54d2abb4e8a5dad8d302 (diff) | |
download | isc-dhcp-274d24ab8bd8d5e43db194cb7d3bee5d50bf4cac.tar.gz |
Fix operator precedence bug
Diffstat (limited to 'relay')
-rw-r--r-- | relay/dhcrelay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c index 6c63fb04..0db41acb 100644 --- a/relay/dhcrelay.c +++ b/relay/dhcrelay.c @@ -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 |