[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 01/06: fix free of uninit
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 01/06: fix free of uninit |
Date: |
Thu, 08 Mar 2018 15:50:21 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 1051931d1de852b8c7750e1d02f1abb5b044483a
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Mar 8 14:09:41 2018 +0100
fix free of uninit
---
src/gns/gnunet-gns-proxy.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c
index a7c189003..83518fcd7 100644
--- a/src/gns/gnunet-gns-proxy.c
+++ b/src/gns/gnunet-gns-proxy.c
@@ -2395,6 +2395,7 @@ setup_data_transfer (struct Socks5Request *s5r)
break;
case HTTP_PORT:
default:
+ domain = NULL;
GNUNET_assert (NULL != httpd);
hd = httpd;
break;
@@ -2403,12 +2404,16 @@ setup_data_transfer (struct Socks5Request *s5r)
addr = GNUNET_NETWORK_get_addr (s5r->sock);
len = GNUNET_NETWORK_get_addrlen (s5r->sock);
s5r->state = SOCKS5_SOCKET_WITH_MHD;
- if (MHD_YES != MHD_add_connection (hd->daemon, fd, addr, len))
+ if (MHD_YES !=
+ MHD_add_connection (hd->daemon,
+ fd,
+ addr,
+ len))
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
_("Failed to pass client to MHD\n"));
cleanup_s5r (s5r);
- GNUNET_free (domain);
+ GNUNET_free_non_null (domain);
return;
}
s5r->hd = hd;
@@ -2416,7 +2421,7 @@ setup_data_transfer (struct Socks5Request *s5r)
s5r->timeout_task = GNUNET_SCHEDULER_add_delayed (HTTP_HANDSHAKE_TIMEOUT,
&timeout_s5r_handshake,
s5r);
- GNUNET_free (domain);
+ GNUNET_free_non_null (domain);
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] branch master updated (16586e2a9 -> 310d0f559), gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 01/06: fix free of uninit,
gnunet <=
- [GNUnet-SVN] [gnunet] 04/06: modernize manual for current browsers, gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 02/06: better error reporting from scheduler, gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 05/06: disable debug instrumentation again, gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 03/06: fix output of hostname by gnunet-gns, gnunet, 2018/03/08
- [GNUnet-SVN] [gnunet] 06/06: misc fixes to gnunet-gns-proxy, in particular avoiding MHD-busy waiting, gnunet, 2018/03/08