mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-04-05 03:10:38 +02:00
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.
This commit is contained in:
parent
351a91c736
commit
ce53bbd7af
2 changed files with 8 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
||||
2003-05-16 Colin Walters <walters@verbum.org>
|
||||
|
||||
* tools/dbus-monitor.c: Add --session argument and usage()
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue