mirror of
https://github.com/moparisthebest/curl
synced 2025-01-08 12:28:06 -05: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
3
CHANGES
3
CHANGES
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
|
|
||||||
Daniel Stenberg (14 Apr 2008)
|
Daniel Stenberg (14 Apr 2008)
|
||||||
|
- Andre Guibert de Bruet fixed a second case of not checking the malloc()
|
||||||
|
return code in the Negotiate code.
|
||||||
|
|
||||||
- Sandor Feldi reported bug #1942022
|
- Sandor Feldi reported bug #1942022
|
||||||
(http://curl.haxx.se/bug/view.cgi?id=1942022) pointing out a mistake in the
|
(http://curl.haxx.se/bug/view.cgi?id=1942022) pointing out a mistake in the
|
||||||
lib/Makefile.vc[68] makefiles' release-ssl-dll target.
|
lib/Makefile.vc[68] makefiles' release-ssl-dll target.
|
||||||
|
@ -211,8 +211,10 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
free(input_token.value);
|
free(input_token.value);
|
||||||
input_token.value = NULL;
|
|
||||||
input_token.value = malloc(mechTokenLength);
|
input_token.value = malloc(mechTokenLength);
|
||||||
|
if (input_token.value == NULL)
|
||||||
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
|
||||||
memcpy(input_token.value, mechToken,mechTokenLength);
|
memcpy(input_token.value, mechToken,mechTokenLength);
|
||||||
input_token.length = mechTokenLength;
|
input_token.length = mechTokenLength;
|
||||||
free(mechToken);
|
free(mechToken);
|
||||||
|
Loading…
Reference in New Issue
Block a user