Commit 336f2eb8 authored by Martin Blix Grydeland's avatar Martin Blix Grydeland

Correctly account for the entire terminator space needed when checking

vary length
parent 500c6565
...@@ -321,7 +321,7 @@ VRY_Match(struct req *req, const uint8_t *vary) ...@@ -321,7 +321,7 @@ VRY_Match(struct req *req, const uint8_t *vary)
lh = 0xffff; lh = 0xffff;
} }
if (vsp + ln + 2 >= req->vary_e) { if (vsp + ln + 3 >= req->vary_e) {
/* /*
* Not enough space to build new entry * Not enough space to build new entry
* and put terminator behind it. * and put terminator behind it.
......
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