Skip to content

Commit

Permalink
Allow empty store in gss_acquire_cred_from
Browse files Browse the repository at this point in the history
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 970304b)

ticket: 8079 (new)
version_fixed: 1.11.6
status: resolved
  • Loading branch information
greghudson authored and tlyu committed Feb 6, 2015
1 parent 14d6549 commit 46c0762
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/lib/gssapi/mechglue/g_acquire_cred.c
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 46c0762

Please sign in to comment.