From 3eee68eb9a609785c35f574c60df7ab2dcbfeb4d Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Mon, 3 Jul 2017 07:29:41 +0200 Subject: [PATCH] Revert "Check needs extra paranthesis to aviod ambiguity." This reverts commit 4e219110d4becb28907b6840cbf4f7914a5e7c43. The commit also added the mask that caused ambiguity. It shouldn't be there. --- src/add-ons/kernel/network/protocols/tcp/tcp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/network/protocols/tcp/tcp.cpp b/src/add-ons/kernel/network/protocols/tcp/tcp.cpp index 3051c1136e..7c1dbb4f75 100644 --- a/src/add-ons/kernel/network/protocols/tcp/tcp.cpp +++ b/src/add-ons/kernel/network/protocols/tcp/tcp.cpp @@ -538,7 +538,7 @@ tcp_getsockopt(net_protocol* _protocol, int level, int option, void* value, { TCPEndpoint* protocol = (TCPEndpoint*)_protocol; - if ((level & LEVEL_MASK) == IPPROTO_TCP) + if (level == IPPROTO_TCP) return protocol->GetOption(option, value, _length); return protocol->next->module->getsockopt(protocol->next, level, option,