[Telepathy-commits] [telepathy-gabble/master] gabble_bytestream_socks5_block_reading: check if transport is not NULL

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Feb 20 08:30:14 PST 2009


---
 src/bytestream-socks5.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/bytestream-socks5.c b/src/bytestream-socks5.c
index ec0909e..975ba59 100644
--- a/src/bytestream-socks5.c
+++ b/src/bytestream-socks5.c
@@ -1417,7 +1417,9 @@ gabble_bytestream_socks5_block_reading (GabbleBytestreamIface *iface,
   priv->read_blocked = block;
 
   DEBUG ("%s the transport bytestream", block ? "block": "unblock");
-  gibber_transport_block_receiving (priv->transport, block);
+
+  if (priv->transport != NULL)
+    gibber_transport_block_receiving (priv->transport, block);
 }
 
 static void
-- 
1.5.6.5




More information about the telepathy-commits mailing list