CLEANUP: resolvers: use pool_zalloc() in resolv_link_resolution()

This one used to alloc then zero the area, let's have the allocator do it.
This commit is contained in:
Willy Tarreau 2021-03-22 21:08:50 +01:00
parent 3ab0a0bc88
commit 70490ebb12
1 changed files with 1 additions and 2 deletions

View File

@ -1660,9 +1660,8 @@ static struct resolv_resolution *resolv_pick_resolution(struct resolvers *resolv
from_pool:
/* No resolution could be found, so let's allocate a new one */
res = pool_alloc(resolv_resolution_pool);
res = pool_zalloc(resolv_resolution_pool);
if (res) {
memset(res, 0, sizeof(*res));
res->resolvers = resolvers;
res->uuid = resolution_uuid;
res->status = RSLV_STATUS_NONE;