mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
fixed bug causing crash in openssl_crypto due to not zeroing a field that was not duplicated before delete
This commit is contained in:
parent
8c3f553579
commit
9371521dd1
@ -416,6 +416,12 @@ ops_boolean_t ops_dsa_verify(const unsigned char *hash,size_t hash_length,
|
||||
fprintf(stderr,"(WW) ops_dsa_verify: openssl does only supports 'q' of 160 bits. Current is %d bits.\n",BN_num_bits(dsa->q)) ;
|
||||
already_said=ops_true ;
|
||||
}
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
osig->r=NULL; // in this case, the values are not copied.
|
||||
osig->s=NULL;
|
||||
#endif
|
||||
|
||||
DSA_SIG_free(osig);
|
||||
return ops_false ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user