]> granicus.if.org Git - curl/commitdiff
CURLOPT_CONNECT_TO.3: user must not free the list prematurely
authorMichael Kaufmann <mail@michael-kaufmann.ch>
Thu, 19 May 2016 22:06:40 +0000 (00:06 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 20 May 2016 04:14:38 +0000 (00:14 -0400)
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
docs/libcurl/opts/CURLOPT_CONNECT_TO.3

index 8c59cfbd42bb6e0136faf5f5a32ca735459c09e3..3025021434b79179069daf5fb9c6bfb2c0b2e6f8 100644 (file)
@@ -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