projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
622352d
)
Not reason, but the macro exists so I'll use it I guess.
author
Jeff Burdges
<burdges@gnunet.org>
Wed, 3 Aug 2016 19:22:01 +0000
(19:22 +0000)
committer
Jeff Burdges
<burdges@gnunet.org>
Wed, 3 Aug 2016 19:22:01 +0000
(19:22 +0000)
src/util/socks.c
patch
|
blob
|
history
diff --git
a/src/util/socks.c
b/src/util/socks.c
index 4a790ac94b9e34791198a977a4bbd4fb4ecb2b22..30a430fbe8f9dd544a6ca22666901fff539abef1 100644
(file)
--- a/
src/util/socks.c
+++ b/
src/util/socks.c
@@
-602,7
+602,7
@@
GNUNET_SOCKS_do_connect (const char *service_name,
GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSHOST", &host0))
host0 = NULL;
socks5 = GNUNET_CONNECTION_create_from_connect (cfg, (host0 != NULL)? host0:"127.0.0.1", port0);
-
if (host0) GNUNET_free
(host0);
+
GNUNET_free_non_null
(host0);
/* Sets to NULL if they do not exist */
(void)GNUNET_CONFIGURATION_get_value_string (cfg, service_name, "SOCKSUSER", &user);