mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
CURLOPT_CONNECT_TO.3: user must not free the list prematurely
The connect-to list isn't copied so as long as the handle may be used for a transfer the list must be valid. Bug: https://github.com/curl/curl/pull/819 Reported-by: Michael Kaufmann
This commit is contained in:
parent
46c4ad36ed
commit
53ae37088c
@ -75,6 +75,11 @@ port, the HTTP proxy is automatically switched to tunnel mode for this
|
||||
specific request. This is necessary because it is not possible to connect to a
|
||||
specific host or port in normal (non-tunnel) mode.
|
||||
|
||||
When this option is passed to \fIcurl_easy_setopt(3)\fP, libcurl will not copy
|
||||
the entire list so you \fBmust\fP keep it around until you no longer use this
|
||||
\fIhandle\fP for a transfer before you call \fIcurl_slist_free_all(3)\fP on
|
||||
the list.
|
||||
|
||||
.SH DEFAULT
|
||||
NULL
|
||||
.SH PROTOCOLS
|
||||
|
Loading…
Reference in New Issue
Block a user