From: Ted Lemon Date: Thu, 1 Jul 1999 20:02:58 +0000 (+0000) Subject: Fix a parenthetification error. X-Git-Tag: V3-BETA-1-PATCH-0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3b5f7f8a020cd0aaa3f49f28b81466ba873ef25;p=thirdparty%2Fdhcp.git Fix a parenthetification error. --- diff --git a/server/bootp.c b/server/bootp.c index 329a8756e..18612cc06 100644 --- a/server/bootp.c +++ b/server/bootp.c @@ -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); diff --git a/server/dhcp.c b/server/dhcp.c index cc9f67b70..ac12cd99a 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -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);