]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3007. [bug] Named failed to preserve the case of domain names in
authorMark Andrews <marka@isc.org>
Fri, 26 Apr 2013 11:52:32 +0000 (21:52 +1000)
committerMark Andrews <marka@isc.org>
Fri, 26 Apr 2013 11:52:32 +0000 (21:52 +1000)
                        rdata which is no compressable when writing master
                        files.  [RT #22863]

lib/dns/rdata/generic/hip_55.c

index 0b4a1e747fd0f5c4dd8a4a524e8d59ad92a8683c..4e3bbe0286a98cf98fc8be280feb63e38e8076ec 100644 (file)
@@ -122,8 +122,6 @@ static inline isc_result_t
 totext_hip(ARGS_TOTEXT) {
        isc_region_t region;
        dns_name_t name;
-       dns_name_t prefix;
-       isc_boolean_t sub;
        size_t length, key_len, hit_len;
        unsigned char algorithm;
        char buf[sizeof("225 ")];
@@ -175,12 +173,10 @@ totext_hip(ARGS_TOTEXT) {
         * Rendezvous Servers.
         */
        dns_name_init(&name, NULL);
-       dns_name_init(&prefix, NULL);
        while (region.length > 0) {
                dns_name_fromregion(&name, &region);
 
-               sub = name_prefix(&name, tctx->origin, &prefix);
-               RETERR(dns_name_totext(&prefix, sub, target));
+               RETERR(dns_name_totext(&name, ISC_FALSE, target));
                isc_region_consume(&region, name.length);
                if (region.length > 0)
                        RETERR(str_totext(tctx->linebreak, target));