mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-28 00:07:09 -05:00
adding missing BIO_free (issue #138)
This commit is contained in:
parent
febea809b1
commit
b2dbf9d30a
@ -595,11 +595,12 @@ int ops_rsa_public_encrypt(unsigned char *out,const unsigned char *in,
|
|||||||
n=RSA_public_encrypt(length,in,out,orsa,RSA_NO_PADDING);
|
n=RSA_public_encrypt(length,in,out,orsa,RSA_NO_PADDING);
|
||||||
|
|
||||||
if (n==-1)
|
if (n==-1)
|
||||||
{
|
{
|
||||||
BIO *fd_out;
|
BIO *fd_out;
|
||||||
fd_out=BIO_new_fd(fileno(stderr), BIO_NOCLOSE);
|
fd_out=BIO_new_fd(fileno(stderr), BIO_NOCLOSE);
|
||||||
ERR_print_errors(fd_out);
|
ERR_print_errors(fd_out);
|
||||||
}
|
BIO_free(fd_out) ;
|
||||||
|
}
|
||||||
|
|
||||||
orsa->n=orsa->e=NULL;
|
orsa->n=orsa->e=NULL;
|
||||||
RSA_free(orsa);
|
RSA_free(orsa);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user