MINOR: dns: functions to manage memory for a DNS resolution structure
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 3 May 2017 08:11:44 +0000 (10:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Jun 2017 09:20:29 +0000 (11:20 +0200)
commit81ed1a0516820c31272059eabdcc41565d2c714e
tree74c160aef2c326eadfc6687ab8ef4b9493fa870e
parentd0aa6d23996ee5413bbab21a7598afc6724fe4aa
MINOR: dns: functions to manage memory for a DNS resolution structure

A couple of new functions to allocate and free memory for a DNS
resolution structure. Main purpose is to to make the code related to DNS
more consistent.
They allocate or free memory for the structure itself. Later, if needed,
they should also allocate / free the buffers, etc, used by this structure.
They don't set/unset any parameters, this is the role of the caller.

This patch also implement calls to these function eveywhere it is
required.
include/proto/dns.h
src/dns.c
src/server.c