As otherwise the callback could be called with a NULL pointer when RTSP
data is provided.
This commit is contained in:
Daniel Stenberg 2016-10-18 12:09:56 +02:00
Родитель 9a509680f6
Коммит 8e8afa82cb
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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);