diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-22 10:18:36 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-22 10:18:36 +0000 |
commit | 34e234898c8388d08bad5e8a14e5de3fb0ab8beb (patch) | |
tree | 2cdeb9810ae0d4154f97290f4dd27187bde289bb /src/exit/gnunet-daemon-exit.c | |
parent | 66042c5692cb3bb36092f6aa5eda1073f35c6167 (diff) | |
download | gnunet-34e234898c8388d08bad5e8a14e5de3fb0ab8beb.tar.gz gnunet-34e234898c8388d08bad5e8a14e5de3fb0ab8beb.zip |
-fix policy string generation
Diffstat (limited to 'src/exit/gnunet-daemon-exit.c')
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index 3d88e3103..da0368655 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c | |||
@@ -3769,9 +3769,10 @@ run (void *cls, | |||
3769 | GNUNET_free_non_null (policy); | 3769 | GNUNET_free_non_null (policy); |
3770 | if (NULL != regex) | 3770 | if (NULL != regex) |
3771 | { | 3771 | { |
3772 | (void) GNUNET_asprintf (&prefixed_regex, "%s%s%s", | 3772 | (void) GNUNET_asprintf (&prefixed_regex, |
3773 | "%s%s", | ||
3773 | GNUNET_APPLICATION_TYPE_EXIT_REGEX_PREFIX, | 3774 | GNUNET_APPLICATION_TYPE_EXIT_REGEX_PREFIX, |
3774 | "4", regex); | 3775 | regex); |
3775 | regex4 = GNUNET_REGEX_announce (cfg, | 3776 | regex4 = GNUNET_REGEX_announce (cfg, |
3776 | prefixed_regex, | 3777 | prefixed_regex, |
3777 | REGEX_REFRESH_FREQUENCY, | 3778 | REGEX_REFRESH_FREQUENCY, |
@@ -3795,9 +3796,10 @@ run (void *cls, | |||
3795 | GNUNET_free_non_null (policy); | 3796 | GNUNET_free_non_null (policy); |
3796 | if (NULL != regex) | 3797 | if (NULL != regex) |
3797 | { | 3798 | { |
3798 | (void) GNUNET_asprintf (&prefixed_regex, "%s%s%s", | 3799 | (void) GNUNET_asprintf (&prefixed_regex, |
3800 | "%s%s", | ||
3799 | GNUNET_APPLICATION_TYPE_EXIT_REGEX_PREFIX, | 3801 | GNUNET_APPLICATION_TYPE_EXIT_REGEX_PREFIX, |
3800 | "6", regex); | 3802 | regex); |
3801 | regex6 = GNUNET_REGEX_announce (cfg, | 3803 | regex6 = GNUNET_REGEX_announce (cfg, |
3802 | prefixed_regex, | 3804 | prefixed_regex, |
3803 | REGEX_REFRESH_FREQUENCY, | 3805 | REGEX_REFRESH_FREQUENCY, |