aboutsummaryrefslogtreecommitdiff
path: root/src/util/socks.c
diff options
context:
space:
mode:
authorCarlo von lynX <lynX@time.to.get.psyced.org>2016-07-30 06:22:40 +0000
committerCarlo von lynX <lynX@time.to.get.psyced.org>2016-07-30 06:22:40 +0000
commit319ff0fa21798013e1fbb6bdd0ce18b1be42fb07 (patch)
tree39719e4669fa0616eded57a30a7e67539def54a9 /src/util/socks.c
parentff1c357933910f707cdf13bb6ef705ef0ae90960 (diff)
downloadgnunet-319ff0fa21798013e1fbb6bdd0ce18b1be42fb07.tar.gz
gnunet-319ff0fa21798013e1fbb6bdd0ce18b1be42fb07.zip
social: allow multiple calls to disconnect(), rest: handle warnings
Diffstat (limited to 'src/util/socks.c')
-rw-r--r--src/util/socks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/socks.c b/src/util/socks.c
index 387c2b698..ece79b3e4 100644
--- a/src/util/socks.c
+++ b/src/util/socks.c
@@ -599,7 +599,7 @@ GNUNET_SOCKS_do_connect (const char *service_name,
599 if (GNUNET_OK != 599 if (GNUNET_OK !=
600 GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSHOST", &host0)) 600 GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSHOST", &host0))
601 host0 = NULL; /* you don't want to feed a static string to free(), right? */ 601 host0 = NULL; /* you don't want to feed a static string to free(), right? */
602 socks5 = GNUNET_CONNECTION_create_from_connect (cfg, host0 || "127.0.0.1", port0); 602 socks5 = GNUNET_CONNECTION_create_from_connect (cfg, (char*)(host0 || "127.0.0.1"), port0);
603 if (host0) GNUNET_free (host0); 603 if (host0) GNUNET_free (host0);
604 604
605 /* Sets to NULL if they do not exist */ 605 /* Sets to NULL if they do not exist */