commit | 4328b61bb33f99d902eb8bf6b4b8fb6423dbee0b | [log] [tgz] |
---|---|---|
author | Amaury Denoyelle <adenoyelle@haproxy.com> | Thu Dec 15 09:27:34 2022 +0100 |
committer | Amaury Denoyelle <adenoyelle@haproxy.com> | Thu Dec 15 11:41:39 2022 +0100 |
tree | 522e95eb4c049ecdf41013f09909173d2796cdb3 | |
parent | 8f1f1b05795f7114c5bbb0cf3bffdf86ed299370 [diff] |
MINOR: http-htx: add BUG_ON to prevent API error on http_cookie_register http_cookie_register() must be called on first invocation with the last two arguments pointing both to a negative value. After it, they will be updated to a valid index. We must never have only the last argument as NULL as this will cause an invalid array addressing. To clarify this a BUG_ON statement is introduced. This is linked to github issue #1967.