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: 7836
version_fixed: 1.12.2
status: resolved
  • Loading branch information
greghudson authored and tlyu committed Jun 26, 2014
1 parent b1ace05 commit f52da2d
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 f52da2d

Please sign in to comment.