]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Allow empty store in gss_acquire_cred_from
authorGreg Hudson <ghudson@mit.edu>
Thu, 16 Jan 2014 16:49:04 +0000 (11:49 -0500)
committerGreg Hudson <ghudson@mit.edu>
Fri, 17 Jan 2014 20:58:08 +0000 (15:58 -0500)
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.

ticket: 7836 (new)
target_version: 1.12.2
tags: pullup

src/lib/gssapi/mechglue/g_acquire_cred.c

index 03b67e390561a7fbed756c3443602c653d67f938..b9a3142a9dc41ce6f8c59a2f9c250d5092d83f2f 100644 (file)
@@ -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);
 }