- If we discover a truncated packetin the middle of unpacking
a resource record, we need to zap RR fields that were already
unpacked. Otherwise we can end up with RR->class = RFC1035_CLASS_IN,
RR->type = RFC1035_TYPE_A, and RR->rdlenght = 0.
/*
- * $Id: rfc1035.c,v 1.18 2000/09/14 15:41:03 wessels Exp $
+ * $Id: rfc1035.c,v 1.19 2000/11/03 16:43:58 wessels Exp $
*
* Low level DNS protocol routines
* AUTHOR: Duane Wessels
* replies at 512 octets, as per RFC 1035. Returning sz+1
* should cause no further processing for this reply.
*/
+ memset(RR, '\0', sizeof(*RR));
return sz + 1;
}
switch (RR->type) {