We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d27a884 commit ee4ba54Copy full SHA for ee4ba54
library/ecdsa.c
@@ -298,7 +298,7 @@ static int ecdsa_sign_restartable( mbedtls_ecp_group *grp,
298
*p_sign_tries = 0;
299
do
300
{
301
- if( *p_sign_tries++ > 10 )
+ if( (*p_sign_tries)++ > 10 )
302
303
ret = MBEDTLS_ERR_ECP_RANDOM_FAILED;
304
goto cleanup;
@@ -311,7 +311,7 @@ static int ecdsa_sign_restartable( mbedtls_ecp_group *grp,
311
*p_key_tries = 0;
312
313
314
- if( *p_key_tries++ > 10 )
+ if( (*p_key_tries)++ > 10 )
315
316
317
0 commit comments