From e5172b98ce024210229e0edfcf4a4ff5d3b12c08 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 2 Dec 2023 13:38:25 +0000 Subject: Actually add the function to the lib! Signed-off-by: Laurent Bercot --- src/libs6dns/s6dns_message_parse_question_nodecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libs6dns/s6dns_message_parse_question_nodecode.c b/src/libs6dns/s6dns_message_parse_question_nodecode.c index f6cc4a7..46ad4ff 100644 --- a/src/libs6dns/s6dns_message_parse_question_nodecode.c +++ b/src/libs6dns/s6dns_message_parse_question_nodecode.c @@ -16,7 +16,7 @@ int s6dns_message_parse_question_nodecode (s6dns_message_counts_t *counts, s6dns uint16_t qtype ; uint16_t qclass ; if (!counts->qd) return (errno = EINVAL, 0) ; - if (!s6dns_message_get_domain_nodecode(&d, packet, packetlen, pos)) return 0 ; + if (!s6dns_message_get_domain_nodecode(d.s, 255, packet, packetlen, pos)) return 0 ; if (*pos + 4 > packetlen) return (errno = EPROTO, 0) ; uint16_unpack_big(packet + *pos, &qtype) ; *pos += 2 ; uint16_unpack_big(packet + *pos, &qclass) ; *pos += 2 ; -- cgit v1.2.3