mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[winpr,crypto] simplify expression
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user