Explorar o código

Revert "Fix operator precedence;"

This reverts commit 5c60aea85523d6f143982c489477f654c7f67d94.
Sasha Szpakowski %!s(int64=2) %!d(string=hai) anos
pai
achega
e8aef888cb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/windows/SChannelConnection.cpp

+ 2 - 2
src/windows/SChannelConnection.cpp

@@ -248,12 +248,12 @@ bool SChannelConnection::connect(const std::string &hostname, uint16_t port)
 	{
 		SecPkgContext_Flags resultFlags;
 		QueryContextAttributes(context.get(), SECPKG_ATTR_FLAGS, &resultFlags);
-		if ((resultFlags.Flags & ISC_REQ_CONFIDENTIALITY) == 0)
+		if (resultFlags.Flags & ISC_REQ_CONFIDENTIALITY == 0)
 		{
 			debug << "Resulting context is not encrypted, marking as failed\n";
 			success = false;
 		}
-		if ((resultFlags.Flags & ISC_REQ_INTEGRITY) == 0)
+		if (resultFlags.Flags & ISC_REQ_INTEGRITY == 0)
 		{
 			debug << "Resulting context is not signed, marking as failed\n";
 			success = false;