diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2015-11-06 00:30:16 -0500 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2015-11-06 00:30:16 -0500 |
commit | cd3aba1a5c618bb20b418ac73d3627b21fb795c8 (patch) | |
tree | 56f6a817aa529eca578090dbd74becc7f20fbec0 /docs/examples/progressfunc.c | |
parent | f6fbbd6dc3bcc93c681b2f7a14a73fa561b00488 (diff) |
getinfo: CURLINFO_ACTIVESOCKET: fix bad socket value
- Set user info param to the socket returned by Curl_getconnectinfo,
regardless of if the socket is bad. Effectively this means the user info
param now will receive CURL_SOCKET_BAD instead of -1 on bad socket.
- Remove incorrect comments.
CURLINFO_ACTIVESOCKET is documented to write CURL_SOCKET_BAD to user
info param but prior to this change it wrote -1.
Bug: https://github.com/bagder/curl/pull/518
Reported-by: Marcel Raad
Diffstat (limited to 'docs/examples/progressfunc.c')
0 files changed, 0 insertions, 0 deletions