mirror of
https://github.com/curl/curl.git
synced 2026-06-16 19:55:38 +03:00
socks_sspi: invalid response length is a fatal error
Pointed out by Zeropath Closes #21999
This commit is contained in:
parent
6b78264bcf
commit
fb83911aa6
1 changed files with 1 additions and 0 deletions
|
|
@ -442,6 +442,7 @@ static CURLcode socks5_sspi_encrypt(struct Curl_cfilter *cf,
|
|||
if(sspi_w_token[1].cbBuffer != 1) {
|
||||
failf(data, "Invalid SSPI encryption response length (%lu).",
|
||||
(unsigned long)sspi_w_token[1].cbBuffer);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
memcpy(socksreq, sspi_w_token[1].pvBuffer, sspi_w_token[1].cbBuffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue