mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:03:36 +03:00
- Andre Guibert de Bruet fixed a second case of not checking the malloc()
return code in the Negotiate code.
This commit is contained in:
parent
cda1f2be58
commit
e0c2a39ad4
2 changed files with 6 additions and 1 deletions
|
|
@ -211,8 +211,10 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||
}
|
||||
else {
|
||||
free(input_token.value);
|
||||
input_token.value = NULL;
|
||||
input_token.value = malloc(mechTokenLength);
|
||||
if (input_token.value == NULL)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
memcpy(input_token.value, mechToken,mechTokenLength);
|
||||
input_token.length = mechTokenLength;
|
||||
free(mechToken);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue