diff options
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 1e73eda0b..96c87bf95 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1051,7 +1051,7 @@ create_session (struct Plugin *plugin, | |||
1051 | session->address = GNUNET_HELLO_address_copy (address); | 1051 | session->address = GNUNET_HELLO_address_copy (address); |
1052 | session->target = address->peer; | 1052 | session->target = address->peer; |
1053 | session->expecting_welcome = GNUNET_YES; | 1053 | session->expecting_welcome = GNUNET_YES; |
1054 | session->scope = GNUNET_ATS_NET_UNSPECIFIED; | 1054 | session->scope = scope; |
1055 | pm = GNUNET_malloc (sizeof (struct PendingMessage) + | 1055 | pm = GNUNET_malloc (sizeof (struct PendingMessage) + |
1056 | sizeof (struct WelcomeMessage)); | 1056 | sizeof (struct WelcomeMessage)); |
1057 | pm->msg = (const char *) &pm[1]; | 1057 | pm->msg = (const char *) &pm[1]; |
@@ -2363,6 +2363,7 @@ handle_tcp_welcome (void *cls, | |||
2363 | alen), | 2363 | alen), |
2364 | client, | 2364 | client, |
2365 | GNUNET_NO); | 2365 | GNUNET_NO); |
2366 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != session->scope); | ||
2366 | GNUNET_HELLO_address_free (address); | 2367 | GNUNET_HELLO_address_free (address); |
2367 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2368 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2368 | "Creating new%s session %p for peer `%s' client %p\n", | 2369 | "Creating new%s session %p for peer `%s' client %p\n", |