fix formatting in crypto.c for my sanity

svn:r411
This commit is contained in:
Roger Dingledine 2003-08-25 07:06:12 +00:00
parent 215ca90c05
commit 58c5d5e918

View File

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