When freeing an auth context, allow the authenticator to be NULL. Useful for
freeing partially allocated authentication context.
krb5_auth_context auth_context)
{
if (auth_context != NULL) {
- krb5_free_authenticator(context, &auth_context->authenticator);
+ if (auth_context->authenticator)
+ krb5_free_authenticator(context, &auth_context->authenticator);
if(auth_context->local_address){
free_HostAddress(auth_context->local_address);
free(auth_context->local_address);