diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-06 11:14:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-06 11:14:11 +0000 |
commit | f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea (patch) | |
tree | b59a38ad9e2296b3d2c8cc3302f21cf6d3ecc458 /src/exit | |
parent | 6db64c5eae089e1d81cafbb051f65412790d16bc (diff) | |
download | gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.tar.gz gnunet-f5beb3eaf163fc0bf2a4f86bd413d3ee6939cfea.zip |
-fix misc issues
Diffstat (limited to 'src/exit')
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index 854d12006..7c67313e6 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c | |||
@@ -3671,13 +3671,17 @@ run (void *cls, | |||
3671 | 3671 | ||
3672 | if (GNUNET_YES == ipv6_enabled) | 3672 | if (GNUNET_YES == ipv6_enabled) |
3673 | { | 3673 | { |
3674 | ipv6addr = NULL; | ||
3674 | if ( (GNUNET_SYSERR == | 3675 | if ( (GNUNET_SYSERR == |
3675 | GNUNET_CONFIGURATION_get_value_string (cfg, "exit", "IPV6ADDR", | 3676 | GNUNET_CONFIGURATION_get_value_string (cfg, |
3677 | "exit", | ||
3678 | "IPV6ADDR", | ||
3676 | &ipv6addr) || | 3679 | &ipv6addr) || |
3677 | (1 != inet_pton (AF_INET6, ipv6addr, &exit_ipv6addr))) ) | 3680 | (1 != inet_pton (AF_INET6, ipv6addr, &exit_ipv6addr))) ) |
3678 | { | 3681 | { |
3679 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "EXIT", "IPV6ADDR"); | 3682 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "EXIT", "IPV6ADDR"); |
3680 | GNUNET_SCHEDULER_shutdown (); | 3683 | GNUNET_SCHEDULER_shutdown (); |
3684 | GNUNET_free_non_null (ipv6addr); | ||
3681 | return; | 3685 | return; |
3682 | } | 3686 | } |
3683 | exit_argv[3] = ipv6addr; | 3687 | exit_argv[3] = ipv6addr; |
@@ -3710,6 +3714,7 @@ run (void *cls, | |||
3710 | } | 3714 | } |
3711 | if (GNUNET_YES == ipv4_enabled) | 3715 | if (GNUNET_YES == ipv4_enabled) |
3712 | { | 3716 | { |
3717 | ipv4addr = NULL; | ||
3713 | if ( (GNUNET_SYSERR == | 3718 | if ( (GNUNET_SYSERR == |
3714 | GNUNET_CONFIGURATION_get_value_string (cfg, "exit", "IPV4ADDR", | 3719 | GNUNET_CONFIGURATION_get_value_string (cfg, "exit", "IPV4ADDR", |
3715 | &ipv4addr) || | 3720 | &ipv4addr) || |
@@ -3717,6 +3722,7 @@ run (void *cls, | |||
3717 | { | 3722 | { |
3718 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "EXIT", "IPV4ADDR"); | 3723 | GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, "EXIT", "IPV4ADDR"); |
3719 | GNUNET_SCHEDULER_shutdown (); | 3724 | GNUNET_SCHEDULER_shutdown (); |
3725 | GNUNET_free_non_null (ipv4addr); | ||
3720 | return; | 3726 | return; |
3721 | } | 3727 | } |
3722 | exit_argv[5] = ipv4addr; | 3728 | exit_argv[5] = ipv4addr; |