]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix gss_store_cred() minor code on acceptor cred
authorTomas Kuthan <tkuthan@gmail.com>
Wed, 30 Sep 2015 13:44:11 +0000 (15:44 +0200)
committerGreg Hudson <ghudson@mit.edu>
Thu, 1 Oct 2015 20:23:18 +0000 (16:23 -0400)
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@mit.edu: edit commit message]

ticket: 8260 (new)
target_version: 1.14
tags: pullup

src/lib/gssapi/krb5/store_cred.c

index a6becf333d8c0f4258f3fa230ba8b91f111b55af..654d965417265e3010a0ded14c359b1149fcc3bd 100644 (file)
@@ -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;
     }