Blame SOURCES/krb5-master-empty-credstore.patch

7d335d
commit 970304b558a360e08d8421ef92245d2df0ac5e49
7d335d
Author: Greg Hudson <ghudson@mit.edu>
7d335d
Date:   Thu Jan 16 11:49:04 2014 -0500
7d335d
7d335d
    Allow empty store in gss_acquire_cred_from
7d335d
    
7d335d
    There is no reason to deny a zero-length cred store, so don't check
7d335d
    for it in val_acq_cred_args or val_add_cred_args.
7d335d
    
7d335d
    ticket: 7836 (new)
7d335d
    target_version: 1.12.2
7d335d
    tags: pullup
7d335d
7d335d
diff --git a/src/lib/gssapi/mechglue/g_acquire_cred.c b/src/lib/gssapi/mechglue/g_acquire_cred.c
7d335d
index 03b67e3..b9a3142 100644
7d335d
--- a/src/lib/gssapi/mechglue/g_acquire_cred.c
7d335d
+++ b/src/lib/gssapi/mechglue/g_acquire_cred.c
7d335d
@@ -80,12 +80,6 @@ val_acq_cred_args(
7d335d
 	return GSS_S_FAILURE;
7d335d
     }
7d335d
 
7d335d
-    if (cred_store != NULL && cred_store->count == 0) {
7d335d
-	*minor_status = EINVAL;
7d335d
-	map_errcode(minor_status);
7d335d
-	return GSS_S_FAILURE;
7d335d
-    }
7d335d
-
7d335d
     return (GSS_S_COMPLETE);
7d335d
 }
7d335d
 
7d335d
@@ -302,12 +296,6 @@ val_add_cred_args(
7d335d
 	return GSS_S_FAILURE;
7d335d
     }
7d335d
 
7d335d
-    if (cred_store != NULL && cred_store->count == 0) {
7d335d
-	*minor_status = EINVAL;
7d335d
-	map_errcode(minor_status);
7d335d
-	return GSS_S_FAILURE;
7d335d
-    }
7d335d
-
7d335d
     return (GSS_S_COMPLETE);
7d335d
 }
7d335d