diff options
author | 2025-02-01 17:46:14 +0100 | |
---|---|---|
committer | 2025-02-03 19:27:09 +0000 | |
commit | 7215b9172517b3535cbdd590cf7fca2762530210 (patch) | |
tree | 96d2637117519b7dfbf43df58b04ffc759566774 /src/plugins | |
parent | a4a449bd30816fada352979115fcbc93eb43bb31 (diff) |
http: buf_fifo_get_segs minor fix
validate segs vector to (_n_segs - 1)
Type: fix
Change-Id: I721cc438e4c9610760a1f40b6355834bbd389b20
Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/http/http_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/http/http_buffer.c b/src/plugins/http/http_buffer.c index bc1b8c08630..909aa538396 100644 --- a/src/plugins/http/http_buffer.c +++ b/src/plugins/http/http_buffer.c @@ -67,7 +67,7 @@ buf_fifo_get_segs (http_buffer_t *hb, u32 max_len, u32 *n_segs) max_len = clib_min (bf->len - bf->offset, (u64) max_len); - vec_validate (bf->segs, _n_segs); + vec_validate (bf->segs, _n_segs - 1); len = svm_fifo_segments (bf->src, 0, bf->segs, &_n_segs, max_len); if (len < 0) |