1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

kdc-db-glue: Do not allocate memory for the principal

The function we are calling already allocate memory.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andreas Schneider 2015-02-25 11:56:34 +01:00 committed by Stefan Metzmacher
parent aa1431e53f
commit b21b2d596e

View File

@ -646,7 +646,6 @@ static krb5_error_code samba_kdc_message2entry(krb5_context context,
* fixed UPPER case realm, but the as-sent username
*/
entry_ex->entry.principal = malloc(sizeof(*(entry_ex->entry.principal)));
if (ent_type == SAMBA_KDC_ENT_TYPE_KRBTGT) {
if (flags & (HDB_F_CANON)) {
/*