summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/curl/interface.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index 636580b8c1..65bcba03bb 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -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));
}