aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index e5f1361ac..6d4413bba 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -1006,8 +1006,9 @@ receiveContentCallback (void *ptr, size_t size, size_t nmemb, void *ctx)
1006 cpy = sizeof (GNUNET_MessageHeader) - httpSession->cs.client.rpos1; 1006 cpy = sizeof (GNUNET_MessageHeader) - httpSession->cs.client.rpos1;
1007 if (cpy > have) 1007 if (cpy > have)
1008 cpy = have; 1008 cpy = have;
1009 memcpy (&httpSession->cs.client. 1009 memcpy (&httpSession->cs.
1010 rbuff1[httpSession->cs.client.rpos1], &inbuf[poff], cpy); 1010 client.rbuff1[httpSession->cs.client.rpos1], &inbuf[poff],
1011 cpy);
1011 httpSession->cs.client.rpos1 += cpy; 1012 httpSession->cs.client.rpos1 += cpy;
1012 have -= cpy; 1013 have -= cpy;
1013 poff += cpy; 1014 poff += cpy;
@@ -1027,8 +1028,9 @@ receiveContentCallback (void *ptr, size_t size, size_t nmemb, void *ctx)
1027 httpSession->cs.client.rpos2; 1028 httpSession->cs.client.rpos2;
1028 if (cpy > have) 1029 if (cpy > have)
1029 cpy = have; 1030 cpy = have;
1030 memcpy (&httpSession->cs.client. 1031 memcpy (&httpSession->cs.
1031 rbuff2[httpSession->cs.client.rpos2], &inbuf[poff], cpy); 1032 client.rbuff2[httpSession->cs.client.rpos2], &inbuf[poff],
1033 cpy);
1032 have -= cpy; 1034 have -= cpy;
1033 poff += cpy; 1035 poff += cpy;
1034 httpSession->cs.client.rpos2 += cpy; 1036 httpSession->cs.client.rpos2 += cpy;