mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
fix formatting in crypto.c for my sanity
svn:r411
This commit is contained in:
parent
215ca90c05
commit
58c5d5e918
@ -117,14 +117,13 @@ crypto_pk_env_t *crypto_new_pk_env(int type)
|
||||
case CRYPTO_PK_RSA:
|
||||
env->key = (unsigned char *)RSA_new();
|
||||
if (!env->key) {
|
||||
free((void *)env);
|
||||
free(env);
|
||||
return NULL;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
free((void *)env);
|
||||
free(env);
|
||||
return NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
return env;
|
||||
@ -146,8 +145,7 @@ void crypto_free_pk_env(crypto_pk_env_t *env)
|
||||
break;
|
||||
}
|
||||
|
||||
free((void *)env);
|
||||
return;
|
||||
free(env);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user