krb5 commit: Fix gss_store_cred() minor code on acceptor cred

Greg Hudson ghudson at mit.edu
Thu Oct 1 16:23:40 EDT 2015


https://github.com/krb5/krb5/commit/c0e16bb2f654038ad81602e89851f232916da051
commit c0e16bb2f654038ad81602e89851f232916da051
Author: Tomas Kuthan <tkuthan at gmail.com>
Date:   Wed Sep 30 15:44:11 2015 +0200

    Fix gss_store_cred() minor code on acceptor cred
    
    In krb5_gss_store_cred_into(), if the credential is acceptor-only, set
    the minor status to G_STORE_ACCEPTOR_CRED_NOSUPP instead of
    G_BAD_USAGE.
    
    [ghudson at mit.edu: edit commit message]
    
    ticket: 8260 (new)
    target_version: 1.14
    tags: pullup

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

diff --git a/src/lib/gssapi/krb5/store_cred.c b/src/lib/gssapi/krb5/store_cred.c
index a6becf3..654d965 100644
--- a/src/lib/gssapi/krb5/store_cred.c
+++ b/src/lib/gssapi/krb5/store_cred.c
@@ -217,7 +217,7 @@ krb5_gss_store_cred_into(OM_uint32 *minor_status,
         return GSS_S_CREDENTIALS_EXPIRED;
 
     if (actual_usage != GSS_C_INITIATE && actual_usage != GSS_C_BOTH) {
-        *minor_status = G_BAD_USAGE;
+        *minor_status = G_STORE_ACCEPTOR_CRED_NOSUPP;
         return GSS_S_FAILURE;
     }
 


More information about the cvs-krb5 mailing list