cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] Missing malloc() return-value check in lib/http_negotiate.c

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Fri, 11 Apr 2008 19:08:37 -0400

Hi,

I have attached a patch which adds a missing NULL check in
http_negotiate.c in the HAVE_SPNEGO case. It also changes the return
value of Curl_input_negotiate() to CURLE_OUT_OF_MEMORY instead of
ENOMEM.

Any objections?

Cheers,
Andy

/* Andre Guibert de Bruet * 436f 6465 2070 6f65 742e 2042 6974 206a */
/* Code poet / Consultant * 6f63 6b65 792e 2053 7973 4164 6d69 6e2e */
/* GSM: +1 734 846 8758 * 2055 4e49 5820 736c 6575 7468 2e00 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */

Received on 2008-04-12