提交 442cbb06 编写于 作者: N Nils Larsch

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

上级 c971ca4c
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册