[winpr,crypto] simplify expression

This commit is contained in:
Armin Novak
2026-03-02 16:31:09 +01:00
parent b909b0cf1c
commit a694b4f22b

View File

@@ -153,9 +153,7 @@ BOOL winpr_RC4_Update(WINPR_RC4_CTX* ctx, size_t length, const void* input, void
return FALSE;
WINPR_ASSERT(ctx);
if (EVP_CipherUpdate(ctx->ctx, output, &outputLength, input, (int)length) != 1)
return FALSE;
return TRUE;
return EVP_CipherUpdate(ctx->ctx, output, &outputLength, input, (int)length) == 1;
#endif
return FALSE;
}