[Telepathy-commits] [telepathy-gabble/master] Stream tubes: AcceptStreamTube: only accept UNIX sockets.

Alban Crequy alban.crequy at collabora.co.uk
Mon Nov 3 10:49:16 PST 2008


---
 src/tube-stream.c   |    4 +---
 src/tubes-channel.c |    4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/tube-stream.c b/src/tube-stream.c
index 305f982..92c9fc8 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -2070,9 +2070,7 @@ gabble_tube_stream_accept_stream_tube (GabbleSvcChannelTypeStreamTube *iface,
   GabbleTubeStreamPrivate *priv = GABBLE_TUBE_STREAM_GET_PRIVATE (self);
   GError *error = NULL;
 
-  if (address_type != TP_SOCKET_ADDRESS_TYPE_UNIX &&
-      address_type != TP_SOCKET_ADDRESS_TYPE_IPV4 &&
-      address_type != TP_SOCKET_ADDRESS_TYPE_IPV6)
+  if (address_type != TP_SOCKET_ADDRESS_TYPE_UNIX)
     {
       error = g_error_new (TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
           "Address type %d not implemented", address_type);
diff --git a/src/tubes-channel.c b/src/tubes-channel.c
index 44e00e0..557e170 100644
--- a/src/tubes-channel.c
+++ b/src/tubes-channel.c
@@ -1917,9 +1917,7 @@ gabble_tubes_channel_accept_stream_tube (TpSvcChannelTypeTubes *iface,
       return;
     }
 
-  if (address_type != TP_SOCKET_ADDRESS_TYPE_UNIX &&
-      address_type != TP_SOCKET_ADDRESS_TYPE_IPV4 &&
-      address_type != TP_SOCKET_ADDRESS_TYPE_IPV6)
+  if (address_type != TP_SOCKET_ADDRESS_TYPE_UNIX)
     {
       error = g_error_new (TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED,
           "Address type %d not implemented", address_type);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list