diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-27 13:37:50 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-06-27 13:37:50 +0000 |
commit | 0e06715f8fd95cabe9f9500176a451bd6a021007 (patch) | |
tree | cdecfa532f66e0f19eb75f776ecc33d10dc90a21 /src/transport | |
parent | 64cd7cbca2bb45fbb31b19b587c7ae4118855a65 (diff) | |
download | gnunet-0e06715f8fd95cabe9f9500176a451bd6a021007.tar.gz gnunet-0e06715f8fd95cabe9f9500176a451bd6a021007.zip |
fix crash
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index df7e833a0..cbea1d024 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1356,7 +1356,7 @@ tcp_plugin_get_session (void *cls, | |||
1356 | { | 1356 | { |
1357 | session = si_ctx.result; | 1357 | session = si_ctx.result; |
1358 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 1358 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
1359 | "Found exisiting session for `%s' address `%s' session %p\n", | 1359 | "Found existing session for `%s' address `%s' session %p\n", |
1360 | GNUNET_i2s (&address->peer), | 1360 | GNUNET_i2s (&address->peer), |
1361 | tcp_address_to_string(NULL, address->address, address->address_length), | 1361 | tcp_address_to_string(NULL, address->address, address->address_length), |
1362 | session); | 1362 | session); |
@@ -1405,7 +1405,7 @@ tcp_plugin_get_session (void *cls, | |||
1405 | else | 1405 | else |
1406 | { | 1406 | { |
1407 | LOG (GNUNET_ERROR_TYPE_WARNING, | 1407 | LOG (GNUNET_ERROR_TYPE_WARNING, |
1408 | _("%s:%u: Address of unexpected length %u (should be %u or %u)\n"), | 1408 | _("Trying to create session for address of unexpected length %u (should be %u or %u)\n"), |
1409 | addrlen, sizeof (struct IPv4TcpAddress), sizeof (struct IPv6TcpAddress)); | 1409 | addrlen, sizeof (struct IPv4TcpAddress), sizeof (struct IPv6TcpAddress)); |
1410 | return NULL; | 1410 | return NULL; |
1411 | } | 1411 | } |
@@ -1577,6 +1577,9 @@ struct PrettyPrinterContext | |||
1577 | */ | 1577 | */ |
1578 | uint16_t port; | 1578 | uint16_t port; |
1579 | 1579 | ||
1580 | /** | ||
1581 | * IPv6 address | ||
1582 | */ | ||
1580 | int ipv6; | 1583 | int ipv6; |
1581 | 1584 | ||
1582 | /** | 1585 | /** |