[krbdev.mit.edu #2906] krb5-1.4.0 dnsglue.c on Solaris 5.7 missing ns_rr_class

DEEngert@anl.gov via RT rt-comment at krbdev.mit.edu
Mon Jan 31 17:42:33 EST 2005


krb5-1.4.0 compiles but will not link because
Solaris 5.7 does not define ns_rr_class in arpa/nameser.h.
So ns_rr_class is assumed to be an external program.

But ns_rr_cl is defined. Looks like this was the previous
name for ns_rr_class.

Suggested fix:

--- ,dnsglue.c	Fri Jan 14 18:10:53 2005
+++ dnsglue.c	Mon Jan 31 16:21:03 2005
@@ -172,7 +172,11 @@
  	if (len < 0)
  	    return -1;
  	ds->cur_ans++;
+#ifndef ns_rr_class
+	if (ds->nclass == ns_rr_cl(rr)
+#else
  	if (ds->nclass == ns_rr_class(rr)
+#endif
  	    && ds->ntype == ns_rr_type(rr)) {
  	    *pp = ns_rr_rdata(rr);
  	    *lenp = ns_rr_rdlen(rr);

This compiles, but I have not testd if it works yet.



-- 

  Douglas E. Engert  <DEEngert at anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444



More information about the krb5-bugs mailing list