2006-02-24 John (J5) Palmieri <johnp@redhat.com>
authorJohn (J5) Palmieri <johnp@redhat.com>
Fri, 24 Feb 2006 16:13:08 +0000 (16:13 +0000)
committerJohn (J5) Palmieri <johnp@redhat.com>
Fri, 24 Feb 2006 16:13:08 +0000 (16:13 +0000)
* patch from Sjoerd Simons <sjoerd at debian.org>:

* dbus/dbus-sysdeps-util.c (_dbus_group_info_free): Moved to
dbus/dbus-sysdeps.c

* dbus/dbus-userdb.c (_dbus_group_info_free_allocated): Don't
call _dbus_group_info_free_allocated which causes infinite loop,
correctly call _dbus_group_info_free

ChangeLog
dbus/dbus-sysdeps-util.c
dbus/dbus-sysdeps.c
dbus/dbus-userdb.c

index ff17cef..de8641c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2006-02-24  John (J5) Palmieri <johnp@redhat.com>
+       
+       * patch from Sjoerd Simons <sjoerd at debian.org>:      
+
+       * dbus/dbus-sysdeps-util.c (_dbus_group_info_free): Moved to 
+       dbus/dbus-sysdeps.c
+
+       * dbus/dbus-userdb.c (_dbus_group_info_free_allocated): Don't
+       call _dbus_group_info_free_allocated which causes infinite loop,
+       correctly call _dbus_group_info_free
+
 2006-02-20  Thiago Macieira <thiago.macieira@trolltech.com>
 
        * qt/qdbusinterface_p.h:
index 9964b56..72db5d3 100644 (file)
@@ -680,17 +680,6 @@ _dbus_group_info_fill_gid (DBusGroupInfo *info,
   return fill_group_info (info, gid, NULL, error);
 }
 
-/**
- * Frees the members of info (but not info itself).
- *
- * @param info the group info
- */
-void
-_dbus_group_info_free (DBusGroupInfo    *info)
-{
-  dbus_free (info->groupname);
-}
-
 /** @} */ /* End of DBusInternalsUtils functions */
 
 /**
index 030d080..e8bd9b7 100644 (file)
@@ -1754,6 +1754,17 @@ _dbus_user_info_free (DBusUserInfo *info)
 }
 
 /**
+ * Frees the members of info (but not info itself).
+ *
+ * @param info the group info
+ */
+void
+_dbus_group_info_free (DBusGroupInfo    *info)
+{
+  dbus_free (info->groupname);
+}
+
+/**
  * Sets fields in DBusCredentials to DBUS_PID_UNSET,
  * DBUS_UID_UNSET, DBUS_GID_UNSET.
  *
index 83a5769..9efc465 100644 (file)
@@ -61,7 +61,7 @@ _dbus_group_info_free_allocated (DBusGroupInfo *info)
   if (info == NULL) /* hash table will pass NULL */
     return;
 
-  _dbus_group_info_free_allocated (info);
+  _dbus_group_info_free (info);
   dbus_free (info);
 }