From 434c105bbe90aba8aa292e54abd641fcca563b02 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 10 May 2024 14:11:32 +0100 Subject: [PATCH] gdbusconnection: Fix a misleading comment While backporting CVE-2024-34397 fixes I noticed that this comment claimed that the reference count is immutable after construction, which is clearly not true. In fact the reference count is the only mutable field. Signed-off-by: Simon McVittie --- gio/gdbusconnection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 72e58fd77..cf7dd8135 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -289,8 +289,8 @@ call_destroy_notify (GMainContext *context, typedef struct { - /* All fields are immutable after construction. */ gatomicrefcount ref_count; + /* All remaining fields are immutable after construction. */ GDBusSignalCallback callback; gpointer user_data; GDestroyNotify user_data_free_func;