From: Matthias Wachs Date: Tue, 15 Nov 2011 16:24:28 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~15913 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21d827009ebb4cc91d6ae08c2c71c5ce09fc4bfc;p=oweals%2Fgnunet.git --- 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 =