Skip to content

Commit

Permalink
Fix mechglue gss_acquire_cred_impersonate_name
Browse files Browse the repository at this point in the history
Checking for the generic gss_acquire_cred() function is no guarantee
that gss_acquire_cred_impersonate_name() is also implemented.

[ghudson@mit.edu: edit commit message]

(cherry picked from commit 46a4e22)

ticket: 8285 (new)
version_fixed: 1.13.3
status: resolved
  • Loading branch information
simo5 authored and tlyu committed Nov 25, 2015
1 parent 1ff9a2e commit dab2474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/gssapi/mechglue/g_acquire_cred_imp_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ gss_add_cred_impersonate_name(OM_uint32 *minor_status,
mech = gssint_get_mechanism(desired_mech);
if (!mech)
return GSS_S_BAD_MECH;
else if (!mech->gss_acquire_cred)
else if (!mech->gss_acquire_cred_impersonate_name)
return (GSS_S_UNAVAILABLE);

if (input_cred_handle == GSS_C_NO_CREDENTIAL) {
Expand Down

0 comments on commit dab2474

Please sign in to comment.