aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_plugin_transport_http.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-25 21:08:55 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-25 21:08:55 +0000
commit537903a8dc4c3ecf2dfa382af0289ddf890adfc7 (patch)
tree93e448c15c843861bd5dfe86c7cad3245abedfe7 /src/transport/test_plugin_transport_http.c
parent2b61888a0bf1d41b2b25256ca9834c3040551ce9 (diff)
downloadgnunet-537903a8dc4c3ecf2dfa382af0289ddf890adfc7.tar.gz
gnunet-537903a8dc4c3ecf2dfa382af0289ddf890adfc7.zip
fixing common off-by-one error with respect to maximum message size
Diffstat (limited to 'src/transport/test_plugin_transport_http.c')
-rw-r--r--src/transport/test_plugin_transport_http.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c
index 75df9c90a..9c98d8c06 100644
--- a/src/transport/test_plugin_transport_http.c
+++ b/src/transport/test_plugin_transport_http.c
@@ -1036,15 +1036,6 @@ static void run_connection_tests( )
1036 api->send(api->cls, &my_identity, tmp, 425, 0, TIMEOUT, NULL,addr_head->addr, addr_head->addrlen, GNUNET_YES, &task_send_cont, NULL);*/ 1036 api->send(api->cls, &my_identity, tmp, 425, 0, TIMEOUT, NULL,addr_head->addr, addr_head->addrlen, GNUNET_YES, &task_send_cont, NULL);*/
1037 1037
1038 1038
1039 /* send a message with size GNUNET_SERVER_MAX_MESSAGE_SIZE )*/
1040 /*
1041 GNUNET_free(tmp);
1042 tmp = GNUNET_malloc(GNUNET_SERVER_MAX_MESSAGE_SIZE);
1043 uint16_t t2 = (uint16_t)GNUNET_SERVER_MAX_MESSAGE_SIZE;
1044 msg.size = htons(t2);
1045 memcpy(tmp,&msg,sizeof(struct GNUNET_MessageHeader));
1046 api->send(api->cls, &my_identity, tmp, GNUNET_SERVER_MAX_MESSAGE_SIZE, 0, TIMEOUT, NULL,addr_head->addr, addr_head->addrlen, GNUNET_YES, &task_send_cont, &fail_msg_transmited_bigger_max_size);
1047*/
1048 /* send a message with size GNUNET_SERVER_MAX_MESSAGE_SIZE-1 */ 1039 /* send a message with size GNUNET_SERVER_MAX_MESSAGE_SIZE-1 */
1049 GNUNET_free(tmp); 1040 GNUNET_free(tmp);
1050 tmp = GNUNET_malloc(GNUNET_SERVER_MAX_MESSAGE_SIZE-1); 1041 tmp = GNUNET_malloc(GNUNET_SERVER_MAX_MESSAGE_SIZE-1);