s4-dns: fixed lookup of SRV records using dns_ex
authorAndrew Tridgell <tridge@samba.org>
Mon, 13 Sep 2010 13:07:44 +0000 (23:07 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 05:39:35 +0000 (15:39 +1000)
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/libcli/resolve/dns_ex.c

index 423668d4b6cbd1e21b05cec6f2f850926a6051a6..76dd10315406e90b41e50505a45474f6f5e740ef 100644 (file)
@@ -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;
                        }