When "peers" keyword is encountered within a stick table definition,
peers.name hint gets replaced with a new copy of the provided name using
strdup(). However, there is no detection on whether the name was
previously set or not, so it is currently allowed to reuse the keyword
multiple time to overwrite previous value, but here we forgot to free
previous value for peers.name before assigning it to a new one.
This should be backported to every stable versions.
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
}
+ ha_free(&t->peers.name);
t->peers.name = strdup(args[idx++]);
}
else if (strcmp(args[idx], "expire") == 0) {