mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
Improve ssh_crypto_finalize().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@496 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -139,11 +139,13 @@ int ssh_crypto_init(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ssh_crypto_finalize(void){
|
||||
if(ssh_crypto_inited){
|
||||
void ssh_crypto_finalize(void) {
|
||||
if(ssh_crypto_inited) {
|
||||
bignum_free(g);
|
||||
g = NULL;
|
||||
bignum_free(p);
|
||||
ssh_crypto_inited=0;
|
||||
p = NULL;
|
||||
ssh_crypto_inited = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user