From b819da364c40fb79f4cab87d02c3dd4ec3fe8b50 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 19 Nov 2008 14:17:27 -0500 Subject: Add method to get a connection's private data Fix memory hierarchy, set the destructor on the server context so that it is called before any memory attached to it is freed. Before this change a talloc_free() on the event context would end in a double free and and an abort() inside talloc. --- server/sbus/sssd_dbus.h | 1 + 1 file changed, 1 insertion(+) (limited to 'server/sbus/sssd_dbus.h') diff --git a/server/sbus/sssd_dbus.h b/server/sbus/sssd_dbus.h index 321bd603e..94447a6e3 100644 --- a/server/sbus/sssd_dbus.h +++ b/server/sbus/sssd_dbus.h @@ -82,6 +82,7 @@ int sbus_default_connection_destructor(void *ctx); DBusConnection *sbus_get_connection(struct sbus_conn_ctx *conn_ctx); void sbus_disconnect(struct sbus_conn_ctx *conn_ctx); void sbus_conn_set_private_data(struct sbus_conn_ctx *conn_ctx, void *pvt_data); +void *sbus_conn_get_private_data(struct sbus_conn_ctx *conn_ctx); int sbus_conn_add_method_ctx(struct sbus_conn_ctx *conn_ctx, struct sbus_method_ctx *method_ctx); -- cgit