]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Don't skip character after having parsed a quoted token
authorWillem Toorop <willem@nlnetlabs.nl>
Thu, 9 Sep 2021 10:17:17 +0000 (12:17 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Thu, 9 Sep 2021 10:17:17 +0000 (12:17 +0200)
Fix issue #139

rr.c

diff --git a/rr.c b/rr.c
index 2faf395dbe9c48e509b24b09926a1641ad39ccca..c98989a460954e7ef125fc066927c4f89b8dc83d 100644 (file)
--- a/rr.c
+++ b/rr.c
@@ -606,14 +606,6 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
                        }
                        ldns_rr_push_rdf(new, r);
                }
-               if (quoted) {
-                       if (ldns_buffer_available(rd_buf, 1)) {
-                               ldns_buffer_skip(rd_buf, 1);
-                       } else {
-                               done = true;
-                       }
-               }
-
        } /* for (done = false, r_cnt = 0; !done && r_cnt < r_max; r_cnt++) */
        LDNS_FREE(rd);
        LDNS_FREE(xtok);