From: Alan T. DeKok Date: Tue, 5 Oct 2021 19:20:27 +0000 (-0400) Subject: fix CI errors X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e61bdd15d6d89b5601f0e37b904664b3248b96b;p=thirdparty%2Ffreeradius-server.git fix CI errors --- diff --git a/src/listen/dns/proto_dns.c b/src/listen/dns/proto_dns.c index b9df7fcf2f..feee6a14f5 100644 --- a/src/listen/dns/proto_dns.c +++ b/src/listen/dns/proto_dns.c @@ -242,7 +242,6 @@ static ssize_t mod_encode(void const *instance, request_t *request, uint8_t *buf fr_dns_packet_t *reply = (fr_dns_packet_t *) buffer; fr_dns_packet_t *original = (fr_dns_packet_t *) request->packet->data; ssize_t data_len; - RADCLIENT const *client; fr_dns_ctx_t packet_ctx; /* @@ -255,9 +254,6 @@ static ssize_t mod_encode(void const *instance, request_t *request, uint8_t *buf return 1; } - client = address->radclient; - fr_assert(client); - if (buffer_len < DNS_HDR_LEN) { REDEBUG("Output buffer is too small to hold a DNS packet."); return -1; @@ -300,7 +296,7 @@ static int mod_priority_set(void const *instance, uint8_t const *buffer, size_t 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); - fr_assert(buflen >= DNS_HDR_LEN); + if (buflen < DNS_HDR_LEN) return -1; opcode = packet->opcode;