Fix the constification of the dns_name_t * result variable for dns_tsig_identity()

(cherry picked from commit fa7475b77a)
This commit is contained in:
Ondřej Surý 2019-09-27 09:49:31 +02:00
parent 67978007a2
commit a8a0c78927
4 changed files with 4 additions and 4 deletions

View file

@ -9689,7 +9689,7 @@ get_matching_view(isc_netaddr_t *srcaddr, isc_netaddr_t *destaddr,
if (message->rdclass == view->rdclass ||
message->rdclass == dns_rdataclass_any)
{
dns_name_t *tsig = NULL;
const dns_name_t *tsig = NULL;
*sigresult = dns_message_rechecksig(message, view);
if (*sigresult == ISC_R_SUCCESS) {

View file

@ -3064,7 +3064,7 @@ dns_message_signer(dns_message_t *msg, dns_name_t *signer) {
dns_name_clone(&sig.signer, signer);
dns_rdata_freestruct(&sig);
} else {
dns_name_t *identity;
const dns_name_t *identity;
dns_rdata_any_tsig_t tsig;
result = dns_rdataset_first(msg->tsig);

View file

@ -661,7 +661,7 @@ process_deletetkey(dns_name_t *signer, dns_name_t *name,
{
isc_result_t result;
dns_tsigkey_t *tsigkey = NULL;
dns_name_t *identity;
const dns_name_t *identity;
result = dns_tsigkey_find(&tsigkey, name, &tkeyin->algorithm, ring);
if (result != ISC_R_SUCCESS) {

View file

@ -13734,7 +13734,7 @@ dns_zone_notifyreceive(dns_zone_t *zone, isc_sockaddr_t *from,
uint32_t serial = 0;
bool have_serial = false;
dns_tsigkey_t *tsigkey;
dns_name_t *tsig;
const dns_name_t *tsig;
REQUIRE(DNS_ZONE_VALID(zone));