BUG/MINOR: resolvers: fix attribute packed struct for dns
authorEmeric Brun <ebrun@haproxy.com>
Wed, 23 Dec 2020 14:55:03 +0000 (15:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 13 Feb 2021 08:43:17 +0000 (09:43 +0100)
commit67f830d29dcc65091bc6d4a3a378a99df702a397
tree46d13b68d80c17bc051b7f035fb356e9fd081d91
parent50c870e4de5e8e5fa51e33b54edb6c3f4fd87e85
BUG/MINOR: resolvers: fix attribute packed struct for dns

This patch adds the attribute packed on struct dns_question
because it is directly memcpy to network building a response.

This patch also removes the commented line:
//     struct list options;       /* list of option records */

because it is also used directly using memcpy to build a request
and must not contain host data.
include/haproxy/dns-t.h