Allow non-head use of gwbuf_copy_data

Non-head links in a buffer chain can now be used with gwbuf_copy_data
without triggering the debug assertion.
This commit is contained in:
Markus Mäkelä 2019-12-30 13:28:38 +02:00
parent 03d45c2ace
commit 1092203779
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -723,7 +723,6 @@ GWBUF* gwbuf_make_contiguous(GWBUF* orig)
size_t gwbuf_copy_data(const GWBUF* buffer, size_t offset, size_t bytes, uint8_t* dest)
{
validate_buffer(buffer);
uint32_t buflen;
/** Skip unrelated buffers */