aboutsummaryrefslogtreecommitdiffstats
path: root/buckets/socket_buckets.c
diff options
context:
space:
mode:
Diffstat (limited to 'buckets/socket_buckets.c')
-rw-r--r--buckets/socket_buckets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buckets/socket_buckets.c b/buckets/socket_buckets.c
index ef718af5bd46..d0facdab0daf 100644
--- a/buckets/socket_buckets.c
+++ b/buckets/socket_buckets.c
@@ -50,7 +50,7 @@ static apr_status_t socket_reader(void *baton, apr_size_t bufsize,
"--- socket_recv:\n%.*s\n-(%d)-\n",
*len, buf, *len);
- if (ctx->progress_func)
+ if (ctx->progress_func && *len)
ctx->progress_func(ctx->progress_baton, *len, 0);
return status;