From 21d827009ebb4cc91d6ae08c2c71c5ce09fc4bfc Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 15 Nov 2011 16:24:28 +0000 Subject: [PATCH] --- src/transport/plugin_transport_http_server.c | 7 +++++++ 1 file changed, 7 insertions(+) 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 = -- 2.25.1