From b7090bd0ed089c241b9e63d8506192cf8f8723c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 28 Jun 2006 23:15:18 +0000 Subject: [PATCH] (gss_acquire_cred): if desired_mechs is NO_OID_SET, there is a need to load the mechs, so always do that. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17732 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/mech/gss_acquire_cred.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gssapi/mech/gss_acquire_cred.c b/lib/gssapi/mech/gss_acquire_cred.c index c639164ce..b74939c7f 100644 --- a/lib/gssapi/mech/gss_acquire_cred.c +++ b/lib/gssapi/mech/gss_acquire_cred.c @@ -49,12 +49,13 @@ gss_acquire_cred(OM_uint32 *minor_status, OM_uint32 min_time, cred_time; int i; + _gss_load_mech(); + /* * First make sure that at least one of the requested * mechanisms is one that we support. */ if (mechs) { - _gss_load_mech(); for (i = 0; i < mechs->count; i++) { int t; gss_test_oid_set_member(minor_status,