]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: dns: duplicate entries in resolution wait queue for SRV records
authorBaptiste Assmann <bedis9@gmail.com>
Sat, 12 Aug 2017 07:03:06 +0000 (09:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Aug 2017 09:25:04 +0000 (11:25 +0200)
This loop is useless and duplicates entries into the resolution queue
for nothing.
Entries are already added a bit sooner in the same function.

src/cfgparse.c

index 437d9ef280eadcc2ab460d1517563d6079c86678..a8e54aa78c24f4b96d688d0b09155ae7b92eeb4c 100644 (file)
@@ -8588,13 +8588,6 @@ out_uri_auth_compat:
                next_srv:
                        newsrv = newsrv->next;
                }
-               {
-                       struct dns_srvrq *srvrq;
-
-                       list_for_each_entry(srvrq, &curproxy->srvrq_list, list) {
-                                       dns_link_resolution(srvrq, OBJ_TYPE_SRVRQ, NULL);
-                       }
-               }
 
                /*
                 * Try to generate dynamic cookies for servers now.