Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix drowning of minor_status code when accepting GSSAPI security context #5997

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Fix drowning of minor_status code when accepting GSSAPI security context
Signed-off-by: Jan Just Keijser <[email protected]>
  • Loading branch information
jjkeijser committed Nov 26, 2021
commit 9e5a32f7b25dabe1dc6f56307d33ac800a4d7d80
5 changes: 3 additions & 2 deletions scheduler/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,8 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */
int len; /* Length of authorization string */
gss_ctx_id_t context; /* Authorization context */
OM_uint32 major_status, /* Major status code */
minor_status; /* Minor status code */
minor_status, /* Minor status code */
tmp_status; /* Temporary status code */
gss_buffer_desc input_token = GSS_C_EMPTY_BUFFER,
/* Input token from string */
output_token = GSS_C_EMPTY_BUFFER;
Expand Down Expand Up @@ -781,7 +782,7 @@ cupsdAuthorize(cupsd_client_t *con) /* I - Client connection */
NULL);

if (output_token.length > 0)
gss_release_buffer(&minor_status, &output_token);
gss_release_buffer(&tmp_status, &output_token);

if (GSS_ERROR(major_status))
{
Expand Down