diff options
author | Yang Tse <yangsita@gmail.com> | 2007-11-16 01:19:46 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-11-16 01:19:46 +0000 |
commit | 4f05613fbbc6d90cfa20b0ee5e19e457b826c5c5 (patch) | |
tree | c3eec736dfd100241c349c8f7e745bab9a7765de /lib | |
parent | 22e52ddd6e4aafdde50d54d1456c0c2c891f12c1 (diff) |
Fix unsigned integral math check in add_buffer_send()
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 2 |
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); |