Restconf: reset body buffer

Test: replace http2 with http1.1 instead of appending it
This commit is contained in:
Olof hagsand 2022-09-23 14:44:08 +02:00
parent e0ba90207b
commit 2ce77fdd5c
4 changed files with 5 additions and 3 deletions

View file

@ -765,6 +765,8 @@ restconf_http1_process(restconf_conn *rc,
cbuf_reset(sd->sd_outp_buf);
cbuf_reset(sd->sd_inbuf);
cbuf_reset(sd->sd_indata);
if (sd->sd_body)
cbuf_reset(sd->sd_body);
if (sd->sd_qvec){
cvec_free(sd->sd_qvec);
sd->sd_qvec = NULL;