diff options
-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 42eaeb9b2..d8804b254 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -3071,7 +3071,7 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
3071 | plugin->adv_port = aport; | 3071 | plugin->adv_port = aport; |
3072 | plugin->bind_address = bind_address; | 3072 | plugin->bind_address = bind_address; |
3073 | plugin->external_address = external_address; | 3073 | plugin->external_address = external_address; |
3074 | plugin->internal_address = internal_address; | 3074 | plugin->internal_address = GNUNET_strdup(internal_address); |
3075 | plugin->behind_nat = behind_nat; | 3075 | plugin->behind_nat = behind_nat; |
3076 | plugin->nat_punched = nat_punched; | 3076 | plugin->nat_punched = nat_punched; |
3077 | plugin->enable_nat_client = enable_nat_client; | 3077 | plugin->enable_nat_client = enable_nat_client; |
@@ -3240,6 +3240,7 @@ libgnunet_plugin_transport_tcp_done (void *cls) | |||
3240 | plugin->server_proc = NULL; | 3240 | plugin->server_proc = NULL; |
3241 | } | 3241 | } |
3242 | GNUNET_free_non_null(plugin->bind_address); | 3242 | GNUNET_free_non_null(plugin->bind_address); |
3243 | GNUNET_free_non_null(plugin->internal_address); | ||
3243 | GNUNET_free (plugin); | 3244 | GNUNET_free (plugin); |
3244 | GNUNET_free (api); | 3245 | GNUNET_free (api); |
3245 | return NULL; | 3246 | return NULL; |