CLEANUP: dns: remove duplicated code in dns_validate_dns_response()
authorBaptiste Assmann <bassmann@haproxy.com>
Mon, 21 Aug 2017 14:11:32 +0000 (16:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 22 Aug 2017 09:40:00 +0000 (11:40 +0200)
commit8d112362343dfc7848b3838fe070358b38002afa
treef53b83de5ea8dc68497eeda6f82c5dc17c7bd941
parent60e9c264c961bacf95ad4bd20f2df60f77330ace
CLEANUP: dns: remove duplicated code in dns_validate_dns_response()

a reader pointer comparison to the end of the buffer was performed twice
while once is obviously enough.

backport status: this patch can be backported into HAProxy 1.6 (with some
modification. Please contact me)
src/dns.c