From fa7fd4f261955753edfa3a415dcbf1f206200504 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Sep 2010 23:07:44 +1000 Subject: [PATCH] s4-dns: fixed lookup of SRV records using dns_ex Pair-Programmed-With: Andrew Bartlett --- source4/libcli/resolve/dns_ex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/libcli/resolve/dns_ex.c b/source4/libcli/resolve/dns_ex.c index 423668d4b6c..76dd1031540 100644 --- a/source4/libcli/resolve/dns_ex.c +++ b/source4/libcli/resolve/dns_ex.c @@ -167,7 +167,7 @@ static void run_child_dns_lookup(struct dns_ex_state *state, int fd) if (do_srv) { /* we are only interested in SRV records */ - if (rr->type != rk_ns_c_in) { + if (rr->type != rk_ns_t_srv) { continue; } @@ -207,7 +207,7 @@ static void run_child_dns_lookup(struct dns_ex_state *state, int fd) continue; } - /* we are only interested in SRV records */ + /* we are only interested in A records */ if (rr->type != rk_ns_t_a) { continue; } -- 2.34.1