gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r33942 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r33942 - gnunet/src/transport
Date: Wed, 9 Jul 2014 13:13:22 +0200

Author: wachs
Date: 2014-07-09 13:13:22 +0200 (Wed, 09 Jul 2014)
New Revision: 33942

Modified:
   gnunet/src/transport/plugin_transport_http_server.c
Log:
fixing USE_SUSPEND error with mhd daemon and free error


Modified: gnunet/src/transport/plugin_transport_http_server.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_server.c 2014-07-08 18:03:39 UTC 
(rev 33941)
+++ gnunet/src/transport/plugin_transport_http_server.c 2014-07-09 11:13:22 UTC 
(rev 33942)
@@ -788,8 +788,8 @@
   sc_recv = s->server_recv;
   server_delete_session (s);
 
-  GNUNET_free (sc_send);
-  GNUNET_free (sc_recv);
+  GNUNET_free_non_null (sc_send);
+  GNUNET_free_non_null (sc_recv);
 
   return GNUNET_OK;
 }
@@ -2249,7 +2249,7 @@
                                            MHD_OPTION_NOTIFY_COMPLETED,
                                            &server_disconnect_cb, plugin,
                                            MHD_OPTION_EXTERNAL_LOGGER,
-                                           server_log, NULL, MHD_OPTION_END);
+                                           &server_log, NULL, MHD_OPTION_END);
     if (plugin->server_v4 == NULL)
     {
       LOG (GNUNET_ERROR_TYPE_ERROR,
@@ -2273,7 +2273,8 @@
 #if BUILD_HTTPS
                                            MHD_USE_SSL |
 #endif
-                                           MHD_USE_IPv6, plugin->port,
+                                           MHD_USE_SUSPEND_RESUME | 
MHD_USE_IPv6,
+                                           plugin->port,
                                            &server_accept_cb, plugin,
                                            &server_access_cb, plugin,
                                            MHD_OPTION_SOCK_ADDR,
@@ -2298,7 +2299,7 @@
                                            MHD_OPTION_NOTIFY_COMPLETED,
                                            &server_disconnect_cb, plugin,
                                            MHD_OPTION_EXTERNAL_LOGGER,
-                                           server_log, NULL, MHD_OPTION_END);
+                                           &server_log, NULL, MHD_OPTION_END);
     if (plugin->server_v6 == NULL)
     {
       LOG (GNUNET_ERROR_TYPE_ERROR,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]