summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-15 16:24:28 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-15 16:24:28 +0000
commit21d827009ebb4cc91d6ae08c2c71c5ce09fc4bfc (patch)
tree508f3f9bfc83a3611b2d6fdaf78d734c31d02e38 /src
parentb1a2dbddc2b849a451715e99adeeaf55d80f90f7 (diff)
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 =