Skip to content

Commit fd569fa

Browse files
authored
Merge pull request love2d#18 from bjornbytes/fix-operator-precedence
Fix operator precedence;
2 parents 9611092 + 5c60aea commit fd569fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/windows/SChannelConnection.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,12 @@ bool SChannelConnection::connect(const std::string &hostname, uint16_t port)
248248
{
249249
SecPkgContext_Flags resultFlags;
250250
QueryContextAttributes(context.get(), SECPKG_ATTR_FLAGS, &resultFlags);
251-
if (resultFlags.Flags & ISC_REQ_CONFIDENTIALITY == 0)
251+
if ((resultFlags.Flags & ISC_REQ_CONFIDENTIALITY) == 0)
252252
{
253253
debug << "Resulting context is not encrypted, marking as failed\n";
254254
success = false;
255255
}
256-
if (resultFlags.Flags & ISC_REQ_INTEGRITY == 0)
256+
if ((resultFlags.Flags & ISC_REQ_INTEGRITY) == 0)
257257
{
258258
debug << "Resulting context is not signed, marking as failed\n";
259259
success = false;

0 commit comments

Comments
 (0)