(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 15 Nov 2011 16:24:28 +0000 (16:24 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 15 Nov 2011 16:24:28 +0000 (16:24 +0000)
src/transport/plugin_transport_http_server.c

index eb19bab794ad12c2c35d07085f8143f75e838c08..ae3c41d69cd699b7d04d8fba026afaac4d7a2447 100644 (file)
@@ -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 =