diff options
Diffstat (limited to 'src/service/transport/gnunet-communicator-tcp.c')
-rw-r--r-- | src/service/transport/gnunet-communicator-tcp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/service/transport/gnunet-communicator-tcp.c b/src/service/transport/gnunet-communicator-tcp.c index 02a547335..5d9b9055f 100644 --- a/src/service/transport/gnunet-communicator-tcp.c +++ b/src/service/transport/gnunet-communicator-tcp.c | |||
@@ -27,8 +27,8 @@ | |||
27 | * - support NAT connection reversal method (#5529) | 27 | * - support NAT connection reversal method (#5529) |
28 | * - support other TCP-specific NAT traversal methods (#5531) | 28 | * - support other TCP-specific NAT traversal methods (#5531) |
29 | */ | 29 | */ |
30 | #include "gnunet_common.h" | ||
31 | #include "platform.h" | 30 | #include "platform.h" |
31 | #include "gnunet_common.h" | ||
32 | #include "gnunet_util_lib.h" | 32 | #include "gnunet_util_lib.h" |
33 | #include "gnunet_core_service.h" | 33 | #include "gnunet_core_service.h" |
34 | #include "gnunet_peerstore_service.h" | 34 | #include "gnunet_peerstore_service.h" |
@@ -2369,7 +2369,6 @@ extract_address (const char *bindto) | |||
2369 | char *token; | 2369 | char *token; |
2370 | char *cp; | 2370 | char *cp; |
2371 | char *rest = NULL; | 2371 | char *rest = NULL; |
2372 | char *res; | ||
2373 | 2372 | ||
2374 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2373 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2375 | "extract address with bindto %s\n", | 2374 | "extract address with bindto %s\n", |
@@ -2402,8 +2401,7 @@ extract_address (const char *bindto) | |||
2402 | else | 2401 | else |
2403 | { | 2402 | { |
2404 | token++; | 2403 | token++; |
2405 | res = GNUNET_strdup (token); | 2404 | addr = GNUNET_strdup (token); |
2406 | addr = GNUNET_strdup (res); | ||
2407 | } | 2405 | } |
2408 | } | 2406 | } |
2409 | 2407 | ||
@@ -3349,6 +3347,7 @@ mq_init (void *cls, const struct GNUNET_PeerIdentity *peer, const char *address) | |||
3349 | { | 3347 | { |
3350 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3348 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3351 | "Queue for %s already exists or is in construction\n", address); | 3349 | "Queue for %s already exists or is in construction\n", address); |
3350 | GNUNET_free (in); | ||
3352 | return GNUNET_NO; | 3351 | return GNUNET_NO; |
3353 | } | 3352 | } |
3354 | switch (in->sa_family) | 3353 | switch (in->sa_family) |
@@ -3799,7 +3798,8 @@ init_socket (struct sockaddr *addr, | |||
3799 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3798 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3800 | "Bound to `%s'\n", | 3799 | "Bound to `%s'\n", |
3801 | GNUNET_a2s ((const struct sockaddr *) &in_sto, sto_len)); | 3800 | GNUNET_a2s ((const struct sockaddr *) &in_sto, sto_len)); |
3802 | stats = GNUNET_STATISTICS_create ("communicator-tcp", cfg); | 3801 | if (NULL == stats) |
3802 | stats = GNUNET_STATISTICS_create ("communicator-tcp", cfg); | ||
3803 | 3803 | ||
3804 | if (NULL == is) | 3804 | if (NULL == is) |
3805 | is = GNUNET_NT_scanner_init (); | 3805 | is = GNUNET_NT_scanner_init (); |