summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2007-06-14 19:28:07 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2007-06-14 19:28:07 +0000
commitab4ce38906a6ac696d2c673025ec1a2d1e302b6f (patch)
tree3557f93f2a99bc740421a2f8aba26676ab223576
parentcf4c8dbfa84136c44a18b65168ca599baec45d3a (diff)
* dbus/dbus-auth.c (handle_client_initial_response_cookie_sha1_mech): fixed usage of _dbus_append_desired_identity()
* dbus/dbus-sysdeps.h (_dbus_username_from_current_process): removed prototype
-rw-r--r--ChangeLog9
-rw-r--r--dbus/dbus-auth.c7
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index b22d6204..1ac3d8d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,17 @@
2007-06-14 Ralf Habacker <ralf.habacker@freenet.de>
+ * dbus/dbus-auth.c (handle_client_initial_response_cookie_sha1_mech):
+ fixed usage of _dbus_append_desired_identity()
+
+ * dbus/dbus-sysdeps.h (_dbus_username_from_current_process): removed prototype
+
+2007-06-14 Ralf Habacker <ralf.habacker@freenet.de>
+
* dbus/dbus-sysdeps.c: moved global lock system_users from dbus-userdb.c
2007-06-14 Ralf Habacker <ralf.habacker@freenet.de>
- * global rename of function dbus_username_from_current_process
+ * global rename of function _dbus_username_from_current_process
to _dbus_append_desired_identity.
Approved by Havoc Pennington
diff --git a/dbus/dbus-auth.c b/dbus/dbus-auth.c
index 7fe9671a..9651df74 100644
--- a/dbus/dbus-auth.c
+++ b/dbus/dbus-auth.c
@@ -780,15 +780,15 @@ static dbus_bool_t
handle_client_initial_response_cookie_sha1_mech (DBusAuth *auth,
DBusString *response)
{
- const DBusString *username;
+ const DBusString username;
dbus_bool_t retval;
-
retval = FALSE;
+ _dbus_string_init(&username);
if (!_dbus_append_desired_identity (&username))
goto out_0;
- if (!_dbus_string_hex_encode (username, 0,
+ if (!_dbus_string_hex_encode (&username, 0,
response,
_dbus_string_get_length (response)))
goto out_0;
@@ -796,6 +796,7 @@ handle_client_initial_response_cookie_sha1_mech (DBusAuth *auth,
retval = TRUE;
out_0:
+ _dbus_string_free(&username);
return retval;
}