summaryrefslogtreecommitdiff
path: root/server/dbus/sssd_dbus_common.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2008-10-29 08:44:15 -0400
committerSimo Sorce <idra@samba.org>2008-11-03 10:12:29 -0500
commitf95d98094c3872199eaed59da48a76c44d0e0531 (patch)
tree38deec9483fdbe718a8414104caa97c6e0db2b6c /server/dbus/sssd_dbus_common.c
parent11c415db488265450163b414316cc3b9def17238 (diff)
downloadsssd-f95d98094c3872199eaed59da48a76c44d0e0531.tar.gz
sssd-f95d98094c3872199eaed59da48a76c44d0e0531.tar.bz2
sssd-f95d98094c3872199eaed59da48a76c44d0e0531.zip
Fixing SEGFAULT caused by not completely purging watch data when removing a D-BUS watch from the event loop
Diffstat (limited to 'server/dbus/sssd_dbus_common.c')
-rw-r--r--server/dbus/sssd_dbus_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/dbus/sssd_dbus_common.c b/server/dbus/sssd_dbus_common.c
index a7f2bff2..939e596a 100644
--- a/server/dbus/sssd_dbus_common.c
+++ b/server/dbus/sssd_dbus_common.c
@@ -27,6 +27,7 @@ void remove_watch(DBusWatch *watch, void *data) {
/* Freeing the event object will remove it from the event loop */
talloc_free(fde);
+ dbus_watch_set_data(watch, NULL, NULL);
}