summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>1999-12-10 20:04:53 +0000
committerarchie <archie@FreeBSD.org>1999-12-10 20:04:53 +0000
commitda5ff8ce2a3b17bc02c075958b89e0fbb8f5b16b (patch)
tree970023a49aa7f2eef86153f548436978a035e2cd
parent6ae59d45264e93ede8e900f4f85f5ef6215a443e (diff)
downloadFreeBSD-src-da5ff8ce2a3b17bc02c075958b89e0fbb8f5b16b.zip
FreeBSD-src-da5ff8ce2a3b17bc02c075958b89e0fbb8f5b16b.tar.gz
Fix a '&&' that should have been a '&'.
Submitted by: Erik Salander <erik@whistle.com>
-rw-r--r--lib/libalias/alias_db.c2
-rw-r--r--sys/netinet/libalias/alias_db.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalias/alias_db.c b/lib/libalias/alias_db.c
index 203b96b..618162c 100644
--- a/lib/libalias/alias_db.c
+++ b/lib/libalias/alias_db.c
@@ -609,7 +609,7 @@ GetNewPort(struct alias_link *link, int alias_port_param)
if (go_ahead)
{
- if ((packetAliasMode && PKT_ALIAS_USE_SOCKETS)
+ if ((packetAliasMode & PKT_ALIAS_USE_SOCKETS)
&& (link->flags & LINK_PARTIALLY_SPECIFIED))
{
if (GetSocket(port_net, &link->sockfd, link->link_type))
diff --git a/sys/netinet/libalias/alias_db.c b/sys/netinet/libalias/alias_db.c
index 203b96b..618162c 100644
--- a/sys/netinet/libalias/alias_db.c
+++ b/sys/netinet/libalias/alias_db.c
@@ -609,7 +609,7 @@ GetNewPort(struct alias_link *link, int alias_port_param)
if (go_ahead)
{
- if ((packetAliasMode && PKT_ALIAS_USE_SOCKETS)
+ if ((packetAliasMode & PKT_ALIAS_USE_SOCKETS)
&& (link->flags & LINK_PARTIALLY_SPECIFIED))
{
if (GetSocket(port_net, &link->sockfd, link->link_type))
OpenPOWER on IntegriCloud