Skip to contentSkip to conversation

x25: bit and/or confusion?

PATCH New Roel Kluin 1 participant 1 message Aug 22, 2009

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 x25: bit and/or confusion?

Could it be that something like this was intended?

net/x25/af_x25.c +1 -1
index 5e6c072..bbfcdfa 100644
@@ -1363,7 +1363,7 @@ static int x25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
 			    facilities.throughput > 0xDD)
 				break;
 			if (facilities.reverse &&
-				(facilities.reverse | 0x81)!= 0x81)
+				(facilities.reverse & 0x81) != 0x81)
 				break;
 			x25->facilities = facilities;
 			rc = 0;