Commit 442cbb06 authored by Nils Larsch's avatar Nils Larsch
Browse files

check correct pointer before freeing it (Coverity CID 79,86)

parent c971ca4c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@ static int dh_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
	return 1;

	err:
	if (pubkey)
	if (public_key)
		ASN1_INTEGER_free(public_key);
	if (dh)
		DH_free(dh);
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ static int dsa_pub_decode(EVP_PKEY *pkey, X509_PUBKEY *pubkey)
	return 1;

	err:
	if (pubkey)
	if (public_key)
		ASN1_INTEGER_free(public_key);
	if (dsa)
		DSA_free(dsa);