+1182. [bug] The server could throw an assertion failure when
+ constructing a negative response packet.
+
1181. [func] Add the "key-directory" configuration statement,
which allows the server to look for online signing
keys in alternate directories.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: ncache.c,v 1.25 2001/11/30 01:59:13 gson Exp $ */
+/* $Id: ncache.c,v 1.26 2002/01/21 16:26:06 bwelling Exp $ */
#include <config.h>
{
dns_rdata_t rdata = DNS_RDATA_INIT;
isc_result_t result;
- isc_region_t remaining, tremaining;
+ isc_region_t remaining, tavailable;
isc_buffer_t source, savedbuffer, rdlen;
dns_name_t name;
dns_rdatatype_t type;
* See if we have space for type, class, ttl, and
* rdata length. Write the type, class, and ttl.
*/
- isc_buffer_remainingregion(target, &tremaining);
- if (tremaining.length < 10) {
+ isc_buffer_availableregion(target, &tavailable);
+ if (tavailable.length < 10) {
result = ISC_R_NOSPACE;
goto rollback;
}