summaryrefslogtreecommitdiffstats
path: root/contrib/serf/buckets/socket_buckets.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/serf/buckets/socket_buckets.c')
-rw-r--r--contrib/serf/buckets/socket_buckets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/serf/buckets/socket_buckets.c b/contrib/serf/buckets/socket_buckets.c
index ef718af..d0facda 100644
--- a/contrib/serf/buckets/socket_buckets.c
+++ b/contrib/serf/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;
OpenPOWER on IntegriCloud