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.

ticket: 7836 (new)
target_version: 1.12.2
tags: pullup
  • Loading branch information
greghudson committed Jan 17, 2014
1 parent 6bdaa74 commit 970304b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/lib/gssapi/mechglue/g_acquire_cred.c
Original file line number Diff line number Diff line change
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 970304b

Please sign in to comment.