mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 10:59:35 -05:00
491. [bug] nsupdate would segfault when sending certain
prerequisites with empty RDATA. [RT #357]
This commit is contained in:
parent
acc6b2b2df
commit
693ddf84da
2 changed files with 10 additions and 1 deletions
3
CHANGES
3
CHANGES
|
|
@ -1,4 +1,7 @@
|
|||
|
||||
491. [bug] nsupdate would segfault when sending certain
|
||||
prerequisites with empty RDATA. [RT #357]
|
||||
|
||||
490. [func] When a slave/stub zone has not yet successfully
|
||||
obtained an SOA containing the zone's configured
|
||||
retry time, perform the SOA query retries using
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.108 2000/09/19 01:27:22 gson Exp $ */
|
||||
/* $Id: rdata.c,v 1.109 2000/09/26 19:37:06 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
#include <ctype.h>
|
||||
|
|
@ -455,6 +455,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue