From 0103f42343be18b697169f73f9f3caa81c19e32f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 22 May 2000 12:34:16 +0000 Subject: [PATCH] Add comment about requiring pointers to memory block to be NULL if the corresponding length is 0, non-NULL otherwise. --- lib/dns/include/dns/rdata.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/dns/include/dns/rdata.h b/lib/dns/include/dns/rdata.h index b01e6a920e..badbd738a6 100644 --- a/lib/dns/include/dns/rdata.h +++ b/lib/dns/include/dns/rdata.h @@ -386,6 +386,9 @@ isc_result_t dns_rdata_fromstruct(dns_rdata_t *rdata, * * 'target' is a valid binary buffer. * + * All structure pointers to memory blocks should be NULL if their + * corresponding length values are zero. + * * Ensures: * If result is success: * If 'rdata' is not NULL, it is attached to the target.