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 00ec4b4..e24a4e1 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)
 {
-       assert(to_account < buf->free);
+       assert(to_account <= buf->free);
 
        buf->free -= to_account;
        buf->used += to_account;