Don't return a freed pointer in allocate_ccache()

This commit is contained in:
Asanka Herath
2010-09-02 17:17:56 -04:00
committed by Asanka C. Herath
parent fa4021698e
commit d4a80084f1

View File

@@ -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)