diff options
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/nat_mini.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nat/nat_mini.c b/src/nat/nat_mini.c index 38dcfcd1f..be8f63f66 100644 --- a/src/nat/nat_mini.c +++ b/src/nat/nat_mini.c | |||
@@ -450,6 +450,8 @@ process_unmap_output (void *cls, | |||
450 | 450 | ||
451 | if (NULL == line) | 451 | if (NULL == line) |
452 | { | 452 | { |
453 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
454 | "UPnP unmap done\n"); | ||
453 | GNUNET_OS_command_stop (mini->unmap_cmd); | 455 | GNUNET_OS_command_stop (mini->unmap_cmd); |
454 | mini->unmap_cmd = NULL; | 456 | mini->unmap_cmd = NULL; |
455 | GNUNET_free (mini); | 457 | GNUNET_free (mini); |
@@ -500,7 +502,10 @@ GNUNET_NAT_mini_map_stop (struct GNUNET_NAT_MiniHandle *mini) | |||
500 | often are the same, but it might... */ | 502 | often are the same, but it might... */ |
501 | GNUNET_snprintf (pstr, sizeof (pstr), | 503 | GNUNET_snprintf (pstr, sizeof (pstr), |
502 | "%u", | 504 | "%u", |
503 | (unsigned int) mini->current_addr.sin_port); | 505 | (unsigned int) ntohs (mini->current_addr.sin_port)); |
506 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
507 | "Unmapping port %u\n", | ||
508 | ntohs (mini->current_addr.sin_port)); | ||
504 | mini->unmap_cmd = GNUNET_OS_command_run (&process_unmap_output, | 509 | mini->unmap_cmd = GNUNET_OS_command_run (&process_unmap_output, |
505 | mini, | 510 | mini, |
506 | UNMAP_TIMEOUT, | 511 | UNMAP_TIMEOUT, |