/* Get tgt from database */
retval = krb5_db_get_principal(context, krbtgt_princ, &krbtgt_entry,
- &one, &more)) {
- krb5_free_principal(krbtgt_princ); /* don't need it anymore */
+ &one, &more);
+ krb5_free_principal(context, krbtgt_princ); /* don't need it anymore */
if (retval)
return(retval);
- }
if ((one > 1) || (more)) {
krb5_db_free_principal(context, &krbtgt_entry, one);
return KRB5KDC_ERR_PRINCIPAL_NOT_UNIQUE;