The most recent commit introduced a new variable princ_ent in
populate_krb5_db_entry(). princ_ent is cleaned up by the function's
cleanup label, so it must be initialized before any "goto cleanup"
statements.
ticket: 5889
krb5_tl_data userinfo_tl_data = { NULL }, **endp, *tl;
osa_princ_ent_rec princ_ent;
+ memset(&princ_ent, 0, sizeof(princ_ent));
+
ret = krb5_copy_principal(context, princ, &entry->princ);
if (ret)
goto cleanup;
goto cleanup;
}
- memset(&princ_ent, 0, sizeof(osa_princ_ent_rec));
-
ret = krb5_ldap_get_string(ld, ent, "krbpwdpolicyreference", &pwdpolicydn,
&attr_present);
if (ret)