diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-02 13:38:25 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-02 13:38:25 +0000 |
commit | e5172b98ce024210229e0edfcf4a4ff5d3b12c08 (patch) | |
tree | 051967045a9397a6e366502e95bba80abf73d883 /src | |
parent | 2d78c35314f0310561cabefea8564123ccbb2622 (diff) | |
download | s6-dns-e5172b98ce024210229e0edfcf4a4ff5d3b12c08.tar.xz |
Actually add the function to the lib!
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs6dns/s6dns_message_parse_question_nodecode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 ; |