File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -5983,7 +5983,6 @@ static void run_ec_pubkey_parse_test(void) {
5983
5983
size_t len ;
5984
5984
int32_t i ;
5985
5985
int32_t ecount ;
5986
- int32_t ecount2 ;
5987
5986
ecount = 0 ;
5988
5987
/* Nothing should be reading this far into pubkeyc. */
5989
5988
SECP256K1_CHECKMEM_UNDEFINE (& pubkeyc [65 ], 1 );
@@ -6104,15 +6103,8 @@ static void run_ec_pubkey_parse_test(void) {
6104
6103
CHECK (len == 65 );
6105
6104
/* Multiple illegal args. Should still set arg error only once. */
6106
6105
ecount = 0 ;
6107
- ecount2 = 11 ;
6108
6106
CHECK (secp256k1_ec_pubkey_parse (CTX , NULL , NULL , 65 ) == 0 );
6109
6107
CHECK (ecount == 1 );
6110
- /* Does the illegal arg callback actually change the behavior? */
6111
- secp256k1_context_set_illegal_callback (CTX , uncounting_illegal_callback_fn , & ecount2 );
6112
- CHECK (secp256k1_ec_pubkey_parse (CTX , NULL , NULL , 65 ) == 0 );
6113
- CHECK (ecount == 1 );
6114
- CHECK (ecount2 == 10 );
6115
- secp256k1_context_set_illegal_callback (CTX , NULL , NULL );
6116
6108
/* Try a bunch of prefabbed points with all possible encodings. */
6117
6109
for (i = 0 ; i < SECP256K1_EC_PARSE_TEST_NVALID ; i ++ ) {
6118
6110
ec_pubkey_parse_pointtest (valid [i ], 1 , 1 );
You can’t perform that action at this time.
0 commit comments