fix assertion RELEASE_2_2_1
authorMichael Wallner <mike@php.net>
Sat, 7 Feb 2015 11:25:56 +0000 (12:25 +0100)
committerMichael Wallner <mike@php.net>
Sat, 7 Feb 2015 11:25:56 +0000 (12:25 +0100)
php_http_buffer.c

index 00ec4b4182d034236b8cf56e6463d6d3226aac4d..e24a4e18baa2e4d7e7a6c8cbdbf7d7c7967fc31b 100644 (file)
@@ -74,7 +74,7 @@ PHP_HTTP_BUFFER_API size_t php_http_buffer_resize_ex(php_http_buffer_t *buf, siz
 
 PHP_HTTP_BUFFER_API char *php_http_buffer_account(php_http_buffer_t *buf, size_t to_account)
 {
 
 PHP_HTTP_BUFFER_API char *php_http_buffer_account(php_http_buffer_t *buf, size_t to_account)
 {
-       assert(to_account < buf->free);
+       assert(to_account <= buf->free);
 
        buf->free -= to_account;
        buf->used += to_account;
 
        buf->free -= to_account;
        buf->used += to_account;