From 0dd19003082f50b729328a4161b4462d6e06ed05 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Wed, 7 Jul 2021 23:51:06 +1000 Subject: [PATCH] gss: fix regression in rc4-hmac krb5 DCE unwrap 4b543b7 introduced a regression in the krb5 mechanism's gss_unwrap for DCE applications, owing to IS_DCE_STYLE() being called with a krb5 instead of mechanism context handle. --- lib/gssapi/krb5/arcfour.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gssapi/krb5/arcfour.c b/lib/gssapi/krb5/arcfour.c index ffe4e9618..7bd01a137 100644 --- a/lib/gssapi/krb5/arcfour.c +++ b/lib/gssapi/krb5/arcfour.c @@ -1199,7 +1199,7 @@ _gssapi_unwrap_iov_arcfour(OM_uint32 *minor_status, verify_len = header->buffer.length; - if (!IS_DCE_STYLE(context)) { + if (!IS_DCE_STYLE(ctx)) { for (i = 0; i < iov_count; i++) { /* length in header also includes data and padding */ if (GSS_IOV_BUFFER_TYPE(iov[i].type) == GSS_IOV_BUFFER_TYPE_DATA)