summaryrefslogtreecommitdiffstats
path: root/bus
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-05-16 16:48:07 +0000
committerHavoc Pennington <hp@redhat.com>2003-05-16 16:48:07 +0000
commitce53bbd7af4488b8374aeccc2e80fb2f7eff0683 (patch)
treeb5660d5941db79158143870d59e60d8376d60b1c /bus
parent351a91c7365c086942cd9409f9998b01c8b26280 (diff)
2003-05-16 Havoc Pennington <hp@redhat.com>
* bus/policy.c (free_rule_list_func): avoid a crash when passed NULL as DBusHashTable is annoyingly likely to do.
Diffstat (limited to 'bus')
-rw-r--r--bus/policy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bus/policy.c b/bus/policy.c
index 74ed7100..938f7daa 100644
--- a/bus/policy.c
+++ b/bus/policy.c
@@ -124,6 +124,9 @@ free_rule_list_func (void *data)
{
DBusList **list = data;
+ if (list == NULL) /* DBusHashTable is on crack */
+ return;
+
_dbus_list_foreach (list, free_rule_func, NULL);
_dbus_list_clear (list);