491. [bug] nsupdate would segfault when sending certain

prerequisites with empty RDATA. [RT #356]
This commit is contained in:
Brian Wellington
2000-09-26 21:40:57 +00:00
parent cc5c2564ac
commit 696560604a
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
491. [bug] nsupdate would segfault when sending certain
prerequisites with empty RDATA. [RT #356]
488. [bug] Locks weren't properly destroyed in some cases.
476. [bug] A zone could expire while a zone transfer was in

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: rdata.c,v 1.101.2.3 2000/09/19 02:02:23 bwelling Exp $ */
/* $Id: rdata.c,v 1.101.2.4 2000/09/26 21:40:55 bwelling Exp $ */
#include <config.h>
#include <ctype.h>
@@ -443,6 +443,12 @@ dns_rdata_towire(dns_rdata_t *rdata, dns_compress_t *cctx,
REQUIRE(rdata != NULL);
/*
* Some DynDNS meta-RRs have empty rdata.
*/
if (rdata->length == 0)
return (ISC_R_SUCCESS);
st = *target;
TOWIRESWITCH