mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 23:56:57 +02: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
@ -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 New Issue
Block a user