mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
Cleanup buffers on handle re-use.
This commit is contained in:
parent
c4ba9edd57
commit
a6931b3923
@ -1255,11 +1255,7 @@ PHP_FUNCTION(curl_setopt)
|
||||
Cleanup an execution phase */
|
||||
void _php_curl_cleanup_handle(php_curl *ch)
|
||||
{
|
||||
if (ch->uses < 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (ch->handlers->write->buf.len) {
|
||||
if (ch->handlers->write->buf.len > 0) {
|
||||
memset(&ch->handlers->write->buf, 0, sizeof(smart_str));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user