summaryrefslogtreecommitdiff
path: root/sys/netiso
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2002-08-08 13:51:26 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2002-08-08 13:51:26 +0000
commita2705548511bc2760105bd44edb9810721b98b84 (patch)
treeb63476b887e70f69dc7d14942310b4ae22df07a1 /sys/netiso
parentc883a3563709b4411c62a3b6ac39d42bc4c8c257 (diff)
Use & to test if bits are set, not &&; art@ ok.
Diffstat (limited to 'sys/netiso')
-rw-r--r--sys/netiso/iso_pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netiso/iso_pcb.c b/sys/netiso/iso_pcb.c
index 49808b07680..08bcdf3ba90 100644
--- a/sys/netiso/iso_pcb.c
+++ b/sys/netiso/iso_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iso_pcb.c,v 1.4 2002/03/14 01:27:12 millert Exp $ */
+/* $OpenBSD: iso_pcb.c,v 1.5 2002/08/08 13:51:25 aaron Exp $ */
/* $NetBSD: iso_pcb.c,v 1.10 1996/04/13 01:34:56 cgd Exp $ */
/*-
@@ -232,7 +232,7 @@ iso_pcbbind(v, nam)
bcopy(TSEL(siso), suf.data, sizeof(suf.data));
suf.s = ntohs(suf.s);
if ((suf.s < ISO_PORT_RESERVED) &&
- (isop->isop_socket->so_state && SS_PRIV) == 0)
+ (isop->isop_socket->so_state & SS_PRIV) == 0)
return EACCES;
} else {
register char *cp;