summaryrefslogtreecommitdiff
path: root/src/libs6dns/s6dns_engine.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-01-14 23:24:53 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-01-14 23:24:53 +0000
commitf3d8514681a6a9a0664d3ad0b6b72eb87346f92f (patch)
treeaa4c9c1110ab1e39b320f8e11e67196b70529f00 /src/libs6dns/s6dns_engine.c
parent033e162e95fb13196b3df93b708c535a3977e201 (diff)
downloads6-dns-f3d8514681a6a9a0664d3ad0b6b72eb87346f92f.tar.xz
Prepare for 2.3.5.0, s6dns_message_get_domain_nodecode() now public
Diffstat (limited to 'src/libs6dns/s6dns_engine.c')
-rw-r--r--src/libs6dns/s6dns_engine.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libs6dns/s6dns_engine.c b/src/libs6dns/s6dns_engine.c
index a07b1dc..226bdcf 100644
--- a/src/libs6dns/s6dns_engine.c
+++ b/src/libs6dns/s6dns_engine.c
@@ -20,7 +20,6 @@
#include <s6-dns/s6dns-constants.h>
#include <s6-dns/s6dns-message.h>
#include <s6-dns/s6dns-engine.h>
-#include "s6dns-message-internal.h"
/* Utility functions */
@@ -45,7 +44,7 @@ static int relevant (char const *q, unsigned int qlen, char const *ans, unsigned
{
char buf[255] ;
unsigned int pos = 12 ;
- unsigned int n = s6dns_message_get_domain_internal(buf, 255, ans, anslen, &pos) ;
+ size_t n = s6dns_message_get_domain_nodecode(buf, 255, ans, anslen, &pos) ;
if (!n) return -1 ;
if (pos + 4 > anslen) return (errno = EPROTO, -1) ;
if (qdomain_diff(buf, n, q + 12, qlen - 16)) return 0 ;