diff options
author | Simo Sorce <idra@samba.org> | 2008-11-19 14:17:27 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-11-19 14:17:27 -0500 |
commit | b819da364c40fb79f4cab87d02c3dd4ec3fe8b50 (patch) | |
tree | 8134b81331bf5088727288f0c27bea8611ab5ae4 /server/sbus/sssd_dbus.h | |
parent | 18de263889a8cb71ff9d3087e5cef5777d0221b5 (diff) | |
download | sssd-b819da364c40fb79f4cab87d02c3dd4ec3fe8b50.tar.gz sssd-b819da364c40fb79f4cab87d02c3dd4ec3fe8b50.tar.xz sssd-b819da364c40fb79f4cab87d02c3dd4ec3fe8b50.zip |
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.
Diffstat (limited to 'server/sbus/sssd_dbus.h')
-rw-r--r-- | server/sbus/sssd_dbus.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sbus/sssd_dbus.h b/server/sbus/sssd_dbus.h index 321bd60..94447a6 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); |