(krb5_get_in_cred): clear pointer after freeing data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14353 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -675,6 +675,7 @@ krb5_get_in_cred(krb5_context context,
|
|||||||
if (my_preauth) {
|
if (my_preauth) {
|
||||||
free_ETYPE_INFO(&my_preauth->val[0].info);
|
free_ETYPE_INFO(&my_preauth->val[0].info);
|
||||||
free (my_preauth->val);
|
free (my_preauth->val);
|
||||||
|
my_preauth = NULL;
|
||||||
}
|
}
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user