From 4f05613fbbc6d90cfa20b0ee5e19e457b826c5c5 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 16 Nov 2007 01:19:46 +0000 Subject: Fix unsigned integral math check in add_buffer_send() --- lib/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http.c b/lib/http.c index d0d3bc1ea..00b91a5d3 100644 --- a/lib/http.c +++ b/lib/http.c @@ -947,7 +947,7 @@ CURLcode add_buffer_send(send_buffer *in, headersize = size - included_body_bytes; /* the initial part that isn't body is header */ - DEBUGASSERT(headersize > 0); + DEBUGASSERT(size > included_body_bytes); #ifdef CURL_DOES_CONVERSIONS res = Curl_convert_to_network(conn->data, ptr, headersize); -- cgit v1.2.3