should use hide_client_names

This commit is contained in:
Love Hornquist Astrand
2011-05-17 07:31:04 -07:00
committed by Love Hörnquist Åstrand
parent 242d7e1602
commit b00f1ceeb9

View File

@@ -861,9 +861,11 @@ _kdc_encode_reply(krb5_context context,
/* /*
* Hide client name of privacy reasons * Hide client name of privacy reasons
*/ */
rep->crealm[0] = '\0'; if (1 /* r->fast_options.hide_client_names */) {
free_PrincipalName(&rep->cname); rep->crealm[0] = '\0';
rep->cname.name_type = 0; free_PrincipalName(&rep->cname);
rep->cname.name_type = 0;
}
} }
if(rep->msg_type == krb_as_rep && !config->encode_as_rep_as_tgs_rep) if(rep->msg_type == krb_as_rep && !config->encode_as_rep_as_tgs_rep)