patch-lib_names-net_c 791 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-lib_names-net_c,v 1.4 2015/04/11 08:25:10 ajacoutot Exp $
  2. --- lib/names-net.c.orig Sat Nov 1 16:17:15 2014
  3. +++ lib/names-net.c Fri Apr 10 13:02:09 2015
  4. @@ -196,7 +196,7 @@ char
  5. resolver_inited = 1;
  6. res_init();
  7. }
  8. - res = res_query(dnsname, ns_c_in, ns_t_txt, answer, sizeof(answer));
  9. + res = res_query(dnsname, C_IN, T_TXT, answer, sizeof(answer));
  10. if (res < 0)
  11. {
  12. a->debug("\tfailed, h_errno=%d\n", h_errno);
  13. @@ -210,7 +210,7 @@ char
  14. dns_init_section(&ds, DNS_SEC_ANSWER);
  15. while (dns_parse_rr(&ds) > 0)
  16. {
  17. - if (ds.rr_class != ns_c_in || ds.rr_type != ns_t_txt)
  18. + if (ds.rr_class != C_IN || ds.rr_type != T_TXT)
  19. {
  20. a->debug("\tUnexpected RR in answer: class %d, type %d\n", ds.rr_class, ds.rr_type);
  21. continue;