mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-25 07:41:36 +02:00
BUG/MEDIUM: spoe: dup agent's engine_id string from trash.area
The agent's engine_id forgot to dup from trash, all engine_ids point to the same address "&trash.area", the engine_id changed at run time and will double free when release agents and trash. This bug was introduced by the commit ee3bcddef ("MINOR: tools: add a generic function to generate UUIDs"). No backport is needed, this is 2.2-dev.
This commit is contained in:
parent
83918e2ef1
commit
079f808741
@ -258,7 +258,7 @@ static char *
|
||||
generate_pseudo_uuid()
|
||||
{
|
||||
ha_generate_uuid(&trash);
|
||||
return trash.area;
|
||||
return my_strndup(trash.area, trash.data);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user