summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/transport/plugin_transport_http_server.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index eb19bab79..ae3c41d69 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -639,6 +639,13 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection,
}
GNUNET_assert (s != NULL);
+ /* Check if both directions are connected */
+ if ((sc->session->server_recv == NULL) || (sc->session->server_recv == NULL))
+ {
+ (*upload_data_size) = 0;
+ return MHD_YES;
+ }
+
if (sc->direction == _SEND)
{
response =