From: Daniel Salzman Date: Sun, 28 Jul 2019 17:46:11 +0000 (+0200) Subject: conf: fix bin to txt conversion of acl.update-type X-Git-Tag: v2.9.0~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7104f0a3e686c2d5a404f40672401ebe254ab0d3;p=thirdparty%2Fknot-dns.git conf: fix bin to txt conversion of acl.update-type fixes #651 --- diff --git a/src/knot/conf/tools.c b/src/knot/conf/tools.c index f2de54cec9..95d6119c5b 100644 --- a/src/knot/conf/tools.c +++ b/src/knot/conf/tools.c @@ -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; }