From 39d0d9cb965fa81de6143f1e8914a93f9ad8dde5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 16 Sep 2025 15:09:33 +0200 Subject: [PATCH] xselinux: use return code of X_SEND_REPLY_SIMPLE() Signed-off-by: Enrico Weigelt, metux IT consult --- Xext/xselinux_ext.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Xext/xselinux_ext.c b/Xext/xselinux_ext.c index ba864d4613..17b7a3a1e3 100644 --- a/Xext/xselinux_ext.c +++ b/Xext/xselinux_ext.c @@ -71,12 +71,13 @@ ProcSELinuxQueryVersion(ClientPtr client) .server_major = SELINUX_MAJOR_VERSION, .server_minor = SELINUX_MINOR_VERSION }; + if (client->swapped) { swaps(&reply.server_major); swaps(&reply.server_minor); } - X_SEND_REPLY_SIMPLE(client, reply); - return Success; + + return X_SEND_REPLY_SIMPLE(client, reply); } static int