]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Reapply ist.cocci (2)
authorTim Duesterhus <tim@bastelstu.be>
Sat, 8 Oct 2022 10:33:18 +0000 (12:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 10 Oct 2022 13:49:09 +0000 (15:49 +0200)
This reapplies ist.cocci across the whole src/ tree.

src/hlua.c

index 19932a5b121635ffd2344882ec2dc0457fea040a..1595368796af76f2fafdd9523567f01faa420b08 100644 (file)
@@ -6511,8 +6511,7 @@ static void _hlua_http_msg_delete(struct http_msg *msg, struct filter *filter, s
                        goto end;
 
                v = htx_get_blk_value(htx, blk);
-               v.ptr += htxret.ret;
-               v.len -= htxret.ret;
+               v = istadv(v, htxret.ret);
 
                v = isttrim(v, len);
                /* trimming data in blk: discard everything after the offset