From: Daniel Stenberg Date: Tue, 18 Oct 2016 10:09:56 +0000 (+0200) Subject: curl: set INTERLEAVEDATA too X-Git-Tag: curl-7_51_0~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e8afa82cbb629;p=curl curl: set INTERLEAVEDATA too As otherwise the callback could be called with a NULL pointer when RTSP data is provided. --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 54a57a03c..88427ce4c 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -800,6 +800,7 @@ static CURLcode operate_do(struct GlobalConfig *global, /* where to store */ my_setopt(curl, CURLOPT_WRITEDATA, &outs); + my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs); if(metalink || !config->use_metalink) /* what call to write */ my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb);