Skip to content

Commit 57c364a

Browse files
committed
increment header table size when appending a new raw header to http message
1 parent 1fc4745 commit 57c364a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tempesta_fw/http_msg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,8 @@ tfw_http_msg_hdr_xfrm_str(TfwHttpMsg *hm, const TfwStr *hdr, unsigned int hid,
616616
if (hid == ht->size)
617617
if (tfw_http_msg_grow_hdr_tbl(hm))
618618
return -ENOMEM;
619+
if (hid == ht->off)
620+
++ht->off;
619621
orig_hdr = &ht->tbl[hid];
620622
}
621623

0 commit comments

Comments
 (0)