]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
conf: fix bin to txt conversion of acl.update-type
authorDaniel Salzman <daniel.salzman@nic.cz>
Sun, 28 Jul 2019 17:46:11 +0000 (19:46 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Sun, 28 Jul 2019 17:46:13 +0000 (19:46 +0200)
fixes #651

src/knot/conf/tools.c

index f2de54cec924be7c679f7bc2ae07196eb22f61d1..95d6119c5b87f557a8f0e7180360b6df2fdd9a36 100644 (file)
@@ -204,9 +204,10 @@ int rrtype_to_txt(
 
        uint16_t type = (uint16_t)wire_ctx_read_u64(in);
        int ret = knot_rrtype_to_string(type, (char *)out->position, out->size);
-       if (ret != 0) {
+       if (ret < 0) {
                return KNOT_EINVAL;
        }
+       wire_ctx_skip(out, ret);
 
        YP_CHECK_RET;
 }