Sometime proxy dns servers mess up the case of parts of the
name...
So we should match with strequal() instead of strcmp(),
which results in much less dns packets on the wire...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sun Sep 29 08:09:46 UTC 2024 on atb-devel-224
struct dns_rr_srv *srv = &state->srvs[j];
struct sockaddr_storage *tmp;
- if (strcmp(srv->hostname, ar->name) != 0) {
+ /*
+ * sometimes the name gets messed up
+ * with upper and lower case...
+ */
+ if (!strequal(srv->hostname, ar->name)) {
continue;
}
/* uint16_t can't wrap here. */