[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r32812 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r32812 - gnunet/src/transport |
Date: |
Thu, 27 Mar 2014 14:41:20 +0100 |
Author: wachs
Date: 2014-03-27 14:41:20 +0100 (Thu, 27 Mar 2014)
New Revision: 32812
Modified:
gnunet/src/transport/plugin_transport_tcp.c
Log:
improved network lookup
Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2014-03-27 13:15:01 UTC (rev
32811)
+++ gnunet/src/transport/plugin_transport_tcp.c 2014-03-27 13:41:20 UTC (rev
32812)
@@ -2376,7 +2376,11 @@
static enum GNUNET_ATS_Network_Type
tcp_get_network (void *cls, struct Session *session)
{
- GNUNET_assert(NULL != session);
+ struct Plugin * plugin = cls;
+ GNUNET_assert (NULL != plugin);
+ GNUNET_assert (NULL != session);
+ if (GNUNET_SYSERR == find_session (plugin,session))
+ return GNUNET_ATS_NET_UNSPECIFIED;
return session->ats_address_network_type;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r32812 - gnunet/src/transport,
gnunet <=