Commit a52a1dd4 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

varnishtest: One more flexelint complaint

The assertion above wasn't enough apparently.
parent 6137fb6d
......@@ -362,7 +362,7 @@ tunnel_write(struct tunnel *t, struct vtclog *vl, struct tunnel_lane *lane,
AZ(pthread_mutex_lock(&t->mtx));
if (lane->wrk_len > 0 && lane->buf_len != -1) {
assert(lane->buf_len >= 0);
assert(lane->wrk_len >= lane->buf_len);
assert(lane->wrk_len >= (size_t)lane->buf_len);
lane->wrk_len -= lane->buf_len;
}
lane->buf_len = l;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment