aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/plugin_transport_http.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index a90cc9f0d..b34972722 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -2360,27 +2360,27 @@ http_plugin_send (void *cls,
2360 //return GNUNET_SYSERR; 2360 //return GNUNET_SYSERR;
2361 } 2361 }
2362 2362
2363 /* create msg */ 2363 /* create msg */
2364 msg = GNUNET_malloc (sizeof (struct HTTP_Message) + msgbuf_size); 2364 msg = GNUNET_malloc (sizeof (struct HTTP_Message) + msgbuf_size);
2365 msg->next = NULL; 2365 msg->next = NULL;
2366 msg->size = msgbuf_size; 2366 msg->size = msgbuf_size;
2367 msg->pos = 0; 2367 msg->pos = 0;
2368 msg->buf = (char *) &msg[1]; 2368 msg->buf = (char *) &msg[1];
2369 msg->transmit_cont = cont; 2369 msg->transmit_cont = cont;
2370 msg->transmit_cont_cls = cont_cls; 2370 msg->transmit_cont_cls = cont_cls;
2371 memcpy (msg->buf,msgbuf, msgbuf_size); 2371 memcpy (msg->buf,msgbuf, msgbuf_size);
2372 2372 GNUNET_CONTAINER_DLL_insert (ps->pending_msgs_head,
2373 GNUNET_CONTAINER_DLL_insert(ps->pending_msgs_head,ps->pending_msgs_tail,msg); 2373 ps->pending_msgs_tail,
2374 ps->queue_length_cur += msgbuf_size; 2374 msg);
2375 2375 ps->queue_length_cur += msgbuf_size;
2376 if (send_check_connections (plugin, ps) == GNUNET_SYSERR) 2376 if (send_check_connections (plugin, ps) == GNUNET_SYSERR)
2377 return GNUNET_SYSERR; 2377 return GNUNET_SYSERR;
2378 if (force_address != GNUNET_YES) 2378 if (force_address != GNUNET_YES)
2379 pc->last_session = ps; 2379 pc->last_session = ps;
2380 2380
2381 if (pc->last_session==NULL) 2381 if (pc->last_session==NULL)
2382 pc->last_session = ps; 2382 pc->last_session = ps;
2383 return msg->size; 2383 return msg->size;
2384} 2384}
2385 2385
2386 2386