mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-28 04:10:50 -05:00
BUG/MINOR: ring: fix the size check in ring_make_from_area()
Fix the size check in ring_make_from_area() which is checking the size of the pointer instead of the size of the structure. No backport needed, 2.7 only.
This commit is contained in:
parent
bb650f2be8
commit
3a374eaeeb
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ struct ring *ring_make_from_area(void *area, size_t size)
|
|||
{
|
||||
struct ring *ring = NULL;
|
||||
|
||||
if (size < sizeof(ring))
|
||||
if (size < sizeof(*ring))
|
||||
return NULL;
|
||||
|
||||
if (!area)
|
||||
|
|
|
|||
Loading…
Reference in a new issue