]> granicus.if.org Git - curl/commitdiff
curl: set INTERLEAVEDATA too
authorDaniel Stenberg <daniel@haxx.se>
Tue, 18 Oct 2016 10:09:56 +0000 (12:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 18 Oct 2016 10:09:56 +0000 (12:09 +0200)
As otherwise the callback could be called with a NULL pointer when RTSP
data is provided.

src/tool_operate.c

index 54a57a03c337c4d027d701fe368cf53457d9412b..88427ce4cd626cdb720f2e8e64a9a4d8f6fbce8e 100644 (file)
@@ -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);