]> granicus.if.org Git - curl/commit
ftp wildcard: segfault due to init only in multi_perform
authorDaniel Stenberg <daniel@haxx.se>
Sat, 14 May 2016 22:37:36 +0000 (00:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 14 May 2016 22:37:36 +0000 (00:37 +0200)
commitcba962134256e8b17c70dbb543ffcf935d2a53e4
treed23311120c5695cd72fc98764c4052cb1536bbf2
parente1372418cdf49fc46f284387c6abf0649df6cda0
ftp wildcard: segfault due to init only in multi_perform

The proper FTP wildcard init is now more properly done in Curl_pretransfer()
and the corresponding cleanup in Curl_close().

The previous place of init/cleanup code made the internal pointer to be NULL
when this feature was used with the multi_socket() API, as it was made within
the curl_multi_perform() function.

Reported-by: Jonathan Cardoso Machado
Fixes #800
lib/multi.c
lib/transfer.c
lib/url.c