[Telepathy-commits] [telepathy-glib/master] BaseConn: return InvalidHandle from CreateChannel if Target{Handle, ID} are sketchy

Will Thompson will.thompson at collabora.co.uk
Wed Sep 17 04:33:35 PDT 2008


---
 telepathy-glib/base-connection.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index ddb96a7..d66d2ba 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -2605,6 +2605,7 @@ conn_requests_requestotron_validate_handle (TpBaseConnection *self,
 
           if (target_handle == 0)
             {
+              error->code = TP_ERROR_INVALID_HANDLE;
               dbus_g_method_return_error (context, error);
               g_error_free (error);
               return;
@@ -2630,6 +2631,7 @@ conn_requests_requestotron_validate_handle (TpBaseConnection *self,
           /* Check the supplied TargetHandle is valid */
           if (!tp_handle_is_valid (handles, target_handle, &error))
             {
+              error->code = TP_ERROR_INVALID_HANDLE;
               dbus_g_method_return_error (context, error);
               g_error_free (error);
               return;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list