From: Alan T. DeKok Date: Wed, 6 Oct 2021 17:17:15 +0000 (-0400) Subject: add "const" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94083f92a05fd3cc985a5d384a8b6d72c8546d7f;p=thirdparty%2Ffreeradius-server.git add "const" --- diff --git a/src/listen/dns/proto_dns.c b/src/listen/dns/proto_dns.c index ad64f62482..c6d6c8fb0b 100644 --- a/src/listen/dns/proto_dns.c +++ b/src/listen/dns/proto_dns.c @@ -293,7 +293,7 @@ static int mod_priority_set(void const *instance, uint8_t const *buffer, size_t { int opcode; fr_dns_packet_t const *packet = (fr_dns_packet_t const *) buffer; - proto_dns_t const *inst = talloc_get_type_abort(instance, proto_dns_t); + proto_dns_t const *inst = talloc_get_type_abort_const(instance, proto_dns_t); if (buflen < DNS_HDR_LEN) return -1;