mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 22:00:00 -04:00
add comment
This commit is contained in:
parent
06aa41fbf7
commit
d66d2cb728
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: nxt_30.c,v 1.13 1999/08/12 01:32:31 halley Exp $ */
|
||||
/* $Id: nxt_30.c,v 1.14 1999/08/28 01:48:48 halley Exp $ */
|
||||
|
||||
/* RFC 2065 */
|
||||
|
||||
|
|
@ -139,6 +139,7 @@ fromwire_nxt(dns_rdataclass_t rdclass, dns_rdatatype_t type,
|
|||
RETERR(dns_name_fromwire(&name, source, dctx, downcase, target));
|
||||
|
||||
isc_buffer_active(source, &sr);
|
||||
/* XXXRTH Enforce RFC 2535 length rules if bit 0 is not set. */
|
||||
if (sr.length > 8 * 1024)
|
||||
return (DNS_R_EXTRADATA);
|
||||
RETERR(mem_tobuffer(target, sr.base, sr.length));
|
||||
|
|
|
|||
Loading…
Reference in a new issue