Don't return a freed pointer in allocate_ccache()
This commit is contained in:

committed by
Asanka C. Herath

parent
fa4021698e
commit
d4a80084f1
@@ -206,8 +206,10 @@ allocate_ccache (krb5_context context,
|
||||
}
|
||||
|
||||
ret = (*id)->ops->resolve(context, id, residual);
|
||||
if(ret)
|
||||
if(ret) {
|
||||
free(*id);
|
||||
*id = NULL;
|
||||
}
|
||||
|
||||
#ifdef KRB5_USE_PATH_TOKENS
|
||||
if (exp_residual)
|
||||
|
Reference in New Issue
Block a user