mirror of
https://github.com/curl/curl.git
synced 2026-07-23 19:57:16 +03:00
schannel: fix memory leak during handshake
Follow-up to b6a5f672 which improved the handshake procedure.
Ref: https://github.com/curl/curl/pull/18323
Closes https://github.com/curl/curl/pull/18410
This commit is contained in:
parent
d77a23c263
commit
b9be9f9466
1 changed files with 1 additions and 0 deletions
|
|
@ -1246,6 +1246,7 @@ schannel_connect_step2(struct Curl_cfilter *cf, struct Curl_easy *data)
|
|||
if(!SOCKET_WRITABLE(Curl_conn_cf_get_socket(cf, data), 0)) {
|
||||
SCH_DEV(infof(data, "schannel: handshake waiting for writeable socket"));
|
||||
connssl->io_need = CURL_SSL_IO_NEED_SEND;
|
||||
free(inbuf[0].pvBuffer);
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue