aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-11-16 01:19:46 +0000
committerYang Tse <yangsita@gmail.com>2007-11-16 01:19:46 +0000
commit4f05613fbbc6d90cfa20b0ee5e19e457b826c5c5 (patch)
treec3eec736dfd100241c349c8f7e745bab9a7765de /lib
parent22e52ddd6e4aafdde50d54d1456c0c2c891f12c1 (diff)
Fix unsigned integral math check in add_buffer_send()
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c2
1 files changed, 1 insertions, 1 deletions
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);