krb5: Fix krb5_cc_get_subsidiary() harder

This commit is contained in:
Nicolas Williams
2020-05-28 00:21:04 -05:00
parent 1995637b15
commit c976cbc0f0

View File

@@ -526,8 +526,8 @@ krb5_cc_get_subsidiary(krb5_context context, krb5_ccache id)
{
const char *name = NULL;
if (id->ops->version < KRB5_CC_OPS_VERSION_5
|| id->ops->get_name_2 == NULL)
if (id->ops->version >= KRB5_CC_OPS_VERSION_5
&& id->ops->get_name_2 == NULL)
(void) id->ops->get_name_2(context, id, NULL, NULL, &name);
return name;
}