krb5 commit [krb5-1.11]: Allow empty store in gss_acquire_cred_from

Tom Yu tlyu at mit.edu
Fri Feb 6 17:26:41 EST 2015


https://github.com/krb5/krb5/commit/46c07625eb6235a2c810df229fb9a8a968890d5b
commit 46c07625eb6235a2c810df229fb9a8a968890d5b
Author: Greg Hudson <ghudson at mit.edu>
Date:   Thu Jan 16 11:49:04 2014 -0500

    Allow empty store in gss_acquire_cred_from
    
    There is no reason to deny a zero-length cred store, so don't check
    for it in val_acq_cred_args or val_add_cred_args.
    
    (cherry picked from commit 970304b558a360e08d8421ef92245d2df0ac5e49)
    
    ticket: 8079 (new)
    version_fixed: 1.11.6
    status: resolved

 src/lib/gssapi/mechglue/g_acquire_cred.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/src/lib/gssapi/mechglue/g_acquire_cred.c b/src/lib/gssapi/mechglue/g_acquire_cred.c
index 03b67e3..b9a3142 100644
--- a/src/lib/gssapi/mechglue/g_acquire_cred.c
+++ b/src/lib/gssapi/mechglue/g_acquire_cred.c
@@ -80,12 +80,6 @@ val_acq_cred_args(
 	return GSS_S_FAILURE;
     }
 
-    if (cred_store != NULL && cred_store->count == 0) {
-	*minor_status = EINVAL;
-	map_errcode(minor_status);
-	return GSS_S_FAILURE;
-    }
-
     return (GSS_S_COMPLETE);
 }
 
@@ -302,12 +296,6 @@ val_add_cred_args(
 	return GSS_S_FAILURE;
     }
 
-    if (cred_store != NULL && cred_store->count == 0) {
-	*minor_status = EINVAL;
-	map_errcode(minor_status);
-	return GSS_S_FAILURE;
-    }
-
     return (GSS_S_COMPLETE);
 }
 


More information about the cvs-krb5 mailing list