diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-05-25 13:02:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-05-25 13:02:31 +0000 |
commit | 8e03b253f24f53118a20a4a89eafbb482a346adb (patch) | |
tree | ec5cfcbfa4b9f997bd2ab9d0bfde62d20730c875 /src/vpn/gnunet-service-vpn.c | |
parent | 2f61fb7ffc7232c69e66a13c956892d6f6d13081 (diff) | |
download | gnunet-8e03b253f24f53118a20a4a89eafbb482a346adb.tar.gz gnunet-8e03b253f24f53118a20a4a89eafbb482a346adb.zip |
-logging
Diffstat (limited to 'src/vpn/gnunet-service-vpn.c')
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 21fab6086..304ecb33c 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -743,12 +743,12 @@ handle_regex_result (void *cls, | |||
743 | struct ChannelState *ts = cls; | 743 | struct ChannelState *ts = cls; |
744 | unsigned int apptype; | 744 | unsigned int apptype; |
745 | 745 | ||
746 | GNUNET_REGEX_search_cancel (ts->search); | ||
747 | ts->search = NULL; | ||
748 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 746 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
749 | "Exit %s found for destination %s!\n", | 747 | "Exit %s found for destination %s!\n", |
750 | GNUNET_i2s (id), | 748 | GNUNET_i2s (id), |
751 | print_channel_destination (&ts->destination)); | 749 | print_channel_destination (&ts->destination)); |
750 | GNUNET_REGEX_search_cancel (ts->search); | ||
751 | ts->search = NULL; | ||
752 | switch (ts->af) | 752 | switch (ts->af) |
753 | { | 753 | { |
754 | case AF_INET: | 754 | case AF_INET: |
@@ -761,6 +761,10 @@ handle_regex_result (void *cls, | |||
761 | GNUNET_break (0); | 761 | GNUNET_break (0); |
762 | return; | 762 | return; |
763 | } | 763 | } |
764 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | ||
765 | "Creating tunnel to %s for destination %s!\n", | ||
766 | GNUNET_i2s (id), | ||
767 | print_channel_destination (&ts->destination)); | ||
764 | ts->channel = GNUNET_CADET_channel_create (cadet_handle, | 768 | ts->channel = GNUNET_CADET_channel_create (cadet_handle, |
765 | ts, | 769 | ts, |
766 | id, | 770 | id, |
@@ -2830,8 +2834,8 @@ service_redirect_to_service (void *cls, | |||
2830 | */ | 2834 | */ |
2831 | static void | 2835 | static void |
2832 | channel_cleaner (void *cls, | 2836 | channel_cleaner (void *cls, |
2833 | const struct GNUNET_CADET_Channel *channel, | 2837 | const struct GNUNET_CADET_Channel *channel, |
2834 | void *channel_ctx) | 2838 | void *channel_ctx) |
2835 | { | 2839 | { |
2836 | struct ChannelState *ts = channel_ctx; | 2840 | struct ChannelState *ts = channel_ctx; |
2837 | 2841 | ||