if there were no answers in the reply, but there were other things
in the reply like auth and additional.
/*
- * $Id: rfc1035.c,v 1.3 1999/04/14 05:16:13 wessels Exp $
+ * $Id: rfc1035.c,v 1.4 1999/04/14 06:38:03 wessels Exp $
*
* Low level DNS protocol routines
* AUTHOR: Duane Wessels
assert(off <= sz);
}
i = (int) hdr.ancount;
+ if (i == 0)
+ return 0;
recs = calloc(i, sizeof(*recs));
while (i--) {
off = rfc1035RRUnpack(buf, sz, off, &recs[i]);