move the check if we found any cred where it matter for both cases
(default cred and provided cred) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17814 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -147,12 +147,12 @@ gss_inquire_cred(OM_uint32 *minor_status,
|
|||||||
&m->gm_mech_oid, mechanisms);
|
&m->gm_mech_oid, mechanisms);
|
||||||
found++;
|
found++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (found == 0) {
|
if (found == 0) {
|
||||||
gss_release_oid_set(minor_status, mechanisms);
|
gss_release_oid_set(minor_status, mechanisms);
|
||||||
*minor_status = 0;
|
*minor_status = 0;
|
||||||
return (GSS_S_NO_CRED);
|
return (GSS_S_NO_CRED);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
*minor_status = 0;
|
*minor_status = 0;
|
||||||
|
Reference in New Issue
Block a user