]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
491. [bug] nsupdate would segfault when sending certain
authorAndreas Gustafsson <source@isc.org>
Tue, 26 Sep 2000 19:37:06 +0000 (19:37 +0000)
committerAndreas Gustafsson <source@isc.org>
Tue, 26 Sep 2000 19:37:06 +0000 (19:37 +0000)
                        prerequisites with empty RDATA. [RT #357]

CHANGES
lib/dns/rdata.c

diff --git a/CHANGES b/CHANGES
index 7b824bed6c61a2460328f25b21940f539b6d66b4..1c177a8ad3a3592c2016f723770d02b2d244de2a 100644 (file)
--- a/CHANGES
+++ b/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
index 577b2a80369569f863a1f030245cd3feed8afd12..0e8112ec4acab089243ae12ba26b727b13a20ed9 100644 (file)
@@ -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