Commit e0fe7abe authored by Nils Larsch's avatar Nils Larsch
Browse files

apply fixes from the cvs head

parent e8518f84
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -213,8 +213,11 @@ static int compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)

	ret=BN_bn2bin(tmp,key);
err:
	if (ctx != NULL)
		{
		BN_CTX_end(ctx);
		BN_CTX_free(ctx);
		}
	return(ret);
	}

+2 −1
Original line number Diff line number Diff line
@@ -184,6 +184,7 @@ err:
		RSAerr(RSA_F_RSA_GENERATE_KEY,ERR_LIB_BN);
		ok=0;
		}
	if (ctx != NULL)
		BN_CTX_end(ctx);
	BN_CTX_free(ctx);
	BN_CTX_free(ctx2);