krb5 commit [krb5-1.14]: Fix gss_store_cred() minor code on acceptor cred
Tom Yu
tlyu at mit.edu
Fri Oct 2 14:19:36 EDT 2015
https://github.com/krb5/krb5/commit/7db0ce98c83961537a75ba8256533955aa7885b4
commit 7db0ce98c83961537a75ba8256533955aa7885b4
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]
(cherry picked from commit c0e16bb2f654038ad81602e89851f232916da051)
ticket: 8260
version_fixed: 1.14
status: resolved
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