Commit 230ba3f4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

hds: fix stale pointer

parent 8011d4e3
......@@ -762,6 +762,8 @@ static uint8_t* download_chunk( stream_t *s,
msg_Err( s, "Requested %"PRIi64" bytes, "\
"but only got %d", size, read );
data = realloc( chunk->data, read );
if( data != NULL )
chunk->data = data;
chunk->failed = true;
return NULL;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment