krb5 commit: Fix mechglue gss_acquire_cred_impersonate_name

Greg Hudson ghudson at mit.edu
Fri Nov 13 17:41:15 EST 2015


https://github.com/krb5/krb5/commit/46a4e225d2ecaa4077aa65f12f64273bf4911d3a
commit 46a4e225d2ecaa4077aa65f12f64273bf4911d3a
Author: Simo Sorce <simo at redhat.com>
Date:   Fri Nov 13 14:44:54 2015 -0500

    Fix mechglue gss_acquire_cred_impersonate_name
    
    Checking for the generic gss_acquire_cred() function is no guarantee
    that gss_acquire_cred_impersonate_name() is also implemented.
    
    [ghudson at mit.edu: edit commit message]
    
    ticket: 8276 (new)
    target_version: 1.14
    tags: pullup

 src/lib/gssapi/mechglue/g_acquire_cred_imp_name.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/gssapi/mechglue/g_acquire_cred_imp_name.c b/src/lib/gssapi/mechglue/g_acquire_cred_imp_name.c
index ddaac25..0dd4f87 100644
--- a/src/lib/gssapi/mechglue/g_acquire_cred_imp_name.c
+++ b/src/lib/gssapi/mechglue/g_acquire_cred_imp_name.c
@@ -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) {


More information about the cvs-krb5 mailing list