Author: rhuijben
Date: Thu Nov 19 19:53:23 2015
New Revision: 1715253

URL: http://svn.apache.org/viewvc?rev=1715253&view=rev
Log:
Following up on r1712544, copy the right data in the buffer when the initial
read of a header contains data, but not enough data to return directly.

* buckets/hpack_buckets.c
  (hpack_read_bytes): Copy the data we read, not the output pointer.

Modified:
    serf/trunk/buckets/hpack_buckets.c

Modified: serf/trunk/buckets/hpack_buckets.c
URL: 
http://svn.apache.org/viewvc/serf/trunk/buckets/hpack_buckets.c?rev=1715253&r1=1715252&r2=1715253&view=diff
==============================================================================
--- serf/trunk/buckets/hpack_buckets.c (original)
+++ serf/trunk/buckets/hpack_buckets.c Thu Nov 19 19:53:23 2015
@@ -1504,7 +1504,7 @@ static apr_status_t hpack_read_bytes(ser
 
         hpack_decode_buffer_ensure(bucket, required);
 
-        memcpy(ctx->buffer, data, len);
+        memcpy(ctx->buffer, some_data, len);
         ctx->buffer_used = len;
 
         if (status)


Reply via email to