summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2006-11-07 23:40:14 +0000
committerDavid Hankins <dhankins@isc.org>2006-11-07 23:40:14 +0000
commitc1e6c8329f41b05cdb065af0b20631fc6d33230b (patch)
tree04b40b02e8eb61d0457f3656dcb3a2d848fcb21b /common
parentfd792685951dc0dfdb4ebe41517c7050e3853877 (diff)
downloadisc-dhcp-c1e6c8329f41b05cdb065af0b20631fc6d33230b.tar.gz
- A logic error in omapi interface code was repaired that might result in
incorrectly indicating 'up' state when any flags were set, rather than specifically the INTERFACE_REQUESTED flag. [ISC-Bugs #16431]
Diffstat (limited to 'common')
-rw-r--r--common/discover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/discover.c b/common/discover.c
index c22a2a66..e6921867 100644
--- a/common/discover.c
+++ b/common/discover.c
@@ -34,7 +34,7 @@
#ifndef lint
static char copyright[] =
-"$Id: discover.c,v 1.51 2006/08/09 14:57:47 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
+"$Id: discover.c,v 1.52 2006/11/07 23:40:14 dhankins Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -938,7 +938,7 @@ isc_result_t dhcp_interface_stuff_values (omapi_object_t *c,
status = omapi_connection_put_name (c, "state");
if (status != ISC_R_SUCCESS)
return status;
- if (interface -> flags && INTERFACE_REQUESTED)
+ if ((interface->flags & INTERFACE_REQUESTED) != 0)
status = omapi_connection_put_string (c, "up");
else
status = omapi_connection_put_string (c, "down");