diff --git a/src/ckpool.c b/src/ckpool.c index c54b75e7..2dd7cd3e 100644 --- a/src/ckpool.c +++ b/src/ckpool.c @@ -651,6 +651,8 @@ static int read_gz_line(connsock_t *cs, float *timeout) cs->buflen = cs->bufofs = 0; out: free(dest); + if (ret < 1) + empty_buffer(cs); return ret; }