From 9e5a32f7b25dabe1dc6f56307d33ac800a4d7d80 Mon Sep 17 00:00:00 2001 From: Jan Just Keijser Date: Fri, 26 Nov 2021 17:39:24 +0100 Subject: [PATCH] Fix drowning of minor_status code when accepting GSSAPI security context Signed-off-by: Jan Just Keijser --- scheduler/auth.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scheduler/auth.c b/scheduler/auth.c index 4fdcf1177..35e34e6c8 100644 --- a/scheduler/auth.c +++ b/scheduler/auth.c @@ -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; @@ -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)) {