Skip to content

Commit

Permalink
generate a new sticky cookie if client sent a truncated cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
i-rinat committed Oct 26, 2018
1 parent 5b2e28e commit 412e3dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tempesta_fw/http_sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ tfw_http_sticky_verify(TfwHttpReq *req, TfwStr *value, StickyVal *sv)
if (value->len != sizeof(StickyVal) * 2) {
sess_warn("bad sticky cookie length", addr, ": %lu(%lu)\n",
value->len, sizeof(StickyVal) * 2);
tfw_http_sticky_calc(req, sv);
return TFW_HTTP_SESS_VIOLATE;
}

Expand Down

0 comments on commit 412e3dd

Please sign in to comment.