]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP/MINOR dns: comment do not follow up code update
authorBaptiste Assmann <bedis9@gmail.com>
Mon, 18 Apr 2016 17:42:57 +0000 (19:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Sep 2016 17:51:49 +0000 (19:51 +0200)
The loop comment is not appropriate anymore and needed to be updated
according to the code.

backport: no

src/dns.c

index c76637f870d17eaa41cdae4a1da1bd13a6069be5..b9dce6b1e32b3330c643ad71460ecf86b71ea00a 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -725,7 +725,7 @@ int dns_get_ip_from_response(unsigned char *resp, unsigned char *resp_end,
                                /* move forward data_len for analyzing next record in the response */
                                reader += data_len;
                } /* switch (record type) */
-       } /* for i 0 to ancount */
+       } /* list for each record entries */
 
        /* Select an IP regarding configuration preference.
         * Top priority is the prefered network ip version,