Commit 8e8afa82 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl: set INTERLEAVEDATA too

As otherwise the callback could be called with a NULL pointer when RTSP
data is provided.
parent 9a509680
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -800,6 +800,7 @@ static CURLcode operate_do(struct GlobalConfig *global,


        /* where to store */
        /* where to store */
        my_setopt(curl, CURLOPT_WRITEDATA, &outs);
        my_setopt(curl, CURLOPT_WRITEDATA, &outs);
        my_setopt(curl, CURLOPT_INTERLEAVEDATA, &outs);
        if(metalink || !config->use_metalink)
        if(metalink || !config->use_metalink)
          /* what call to write */
          /* what call to write */
          my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb);
          my_setopt(curl, CURLOPT_WRITEFUNCTION, tool_write_cb);