From 8f42faa697c93d5eb60588e6659a5214c35424a4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 6 Aug 2024 14:50:05 +0200 Subject: [PATCH] (!1639) Xext: security: drop swapping request length fields The request struct's length fields aren't used anymore - we have the client->req_len field instead, which also is bigreq-compatible. Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/security.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Xext/security.c b/Xext/security.c index 68b4e7e5f..3466ad961 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -613,8 +613,6 @@ static int _X_COLD SProcSecurityQueryVersion(ClientPtr client) { REQUEST(xSecurityQueryVersionReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSecurityQueryVersionReq); swaps(&stuff->majorVersion); swaps(&stuff->minorVersion); @@ -628,8 +626,6 @@ SProcSecurityGenerateAuthorization(ClientPtr client) CARD32 *values; unsigned long nvalues; int values_offset; - - swaps(&stuff->length); REQUEST_AT_LEAST_SIZE(xSecurityGenerateAuthorizationReq); swaps(&stuff->nbytesAuthProto); swaps(&stuff->nbytesAuthData); @@ -649,8 +645,6 @@ static int _X_COLD SProcSecurityRevokeAuthorization(ClientPtr client) { REQUEST(xSecurityRevokeAuthorizationReq); - - swaps(&stuff->length); REQUEST_SIZE_MATCH(xSecurityRevokeAuthorizationReq); swapl(&stuff->authId); return ProcSecurityRevokeAuthorization(client);