fixed bug causing crash in openssl_crypto due to not zeroing a field that was not duplicated before delete

This commit is contained in:
csoler 2017-02-20 23:19:29 +01:00
parent 8c3f553579
commit 9371521dd1

View File

@ -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 ;
}