Revert "Check needs extra paranthesis to aviod ambiguity."

This reverts commit 4e219110d4.
The commit also added the mask that caused ambiguity.
It shouldn't be there.
This commit is contained in:
Fredrik Holmqvist 2017-07-03 07:29:41 +02:00
parent 913d4886fe
commit 3eee68eb9a

View File

@ -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,