summaryrefslogtreecommitdiffstats
path: root/server/sbus/sssd_dbus.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@sgallagh.bos.redhat.com>2008-12-15 10:12:43 -0500
committerSimo Sorce <idra@samba.org>2008-12-15 15:40:25 -0500
commit124083f5801312aeef6f97402dba181d98eb708c (patch)
tree8158ed73911b2e9d4c047cffa2a0ea4205c38709 /server/sbus/sssd_dbus.h
parenta5442a122917088afff240846700e858f45fe1de (diff)
downloadsssd-124083f5801312aeef6f97402dba181d98eb708c.tar.gz
sssd-124083f5801312aeef6f97402dba181d98eb708c.tar.xz
sssd-124083f5801312aeef6f97402dba181d98eb708c.zip
Disconnected client SBUS connections would delete the master set of sbus_method_ctx entries, meaning that the next connection to attempt to disconnect would receive a segmentation fault also trying to delete them. They are now talloc_reference()-ed to their connection context and talloc_unlink()-ed upon deletion.
I have also modified the sbus_new_server() call to take a reference to an sbus_srv_ctx object as a return argument, so that the calling function can keep track of the SBUS server context if it so chooses.
Diffstat (limited to 'server/sbus/sssd_dbus.h')
-rw-r--r--server/sbus/sssd_dbus.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sbus/sssd_dbus.h b/server/sbus/sssd_dbus.h
index 75567ac04..398469945 100644
--- a/server/sbus/sssd_dbus.h
+++ b/server/sbus/sssd_dbus.h
@@ -23,6 +23,7 @@
#define _SSSD_DBUS_H_
struct sbus_conn_ctx;
+struct sbus_srv_ctx;
#include "dbus/dbus.h"
@@ -67,7 +68,7 @@ struct sbus_message_handler_ctx {
/* Server Functions */
int sbus_new_server(struct event_context *ev, struct sbus_method_ctx *ctx,
- const char *address,
+ struct sbus_srv_ctx **server_ctx, const char *address,
sbus_server_conn_init_fn init_fn, void *init_pvt_data);
/* Connection Functions */