2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 13:57:50 +00:00

Fix operator precedence bug

This commit is contained in:
Ted Lemon
1997-06-02 23:28:18 +00:00
parent ee31d9923a
commit 274d24ab8b

View File

@@ -42,7 +42,7 @@
#ifndef lint #ifndef lint
static char copyright[] = 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 */ #endif /* not lint */
#include "dhcpd.h" #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 it's a bootreply, forward it to the client. */
if (packet -> op == BOOTREPLY) { if (packet -> op == BOOTREPLY) {
#ifndef USE_FALLBACK #ifndef USE_FALLBACK
if (!packet -> flags & htons (BOOTP_BROADCAST)) { if (!(packet -> flags & htons (BOOTP_BROADCAST))) {
to.sin_addr = packet -> ciaddr; to.sin_addr = packet -> ciaddr;
to.sin_port = remote_port; to.sin_port = remote_port;
} else } else