allow freeing of client_params=NULL cid#54
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24131 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -158,6 +158,8 @@ void
|
|||||||
_kdc_pk_free_client_param(krb5_context context,
|
_kdc_pk_free_client_param(krb5_context context,
|
||||||
pk_client_params *client_params)
|
pk_client_params *client_params)
|
||||||
{
|
{
|
||||||
|
if (client_params == NULL)
|
||||||
|
return;
|
||||||
if (client_params->cert)
|
if (client_params->cert)
|
||||||
hx509_cert_free(client_params->cert);
|
hx509_cert_free(client_params->cert);
|
||||||
if (client_params->dh)
|
if (client_params->dh)
|
||||||
@@ -653,9 +655,9 @@ out:
|
|||||||
krb5_data_free(&eContent);
|
krb5_data_free(&eContent);
|
||||||
der_free_oid(&eContentType);
|
der_free_oid(&eContentType);
|
||||||
der_free_oid(&contentInfoOid);
|
der_free_oid(&contentInfoOid);
|
||||||
if (ret)
|
if (ret) {
|
||||||
_kdc_pk_free_client_param(context, client_params);
|
_kdc_pk_free_client_param(context, client_params);
|
||||||
else
|
} else
|
||||||
*ret_params = client_params;
|
*ret_params = client_params;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user