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

This commit is contained in:
Ondřej Surý 2019-09-27 09:49:31 +02:00
parent 43925b2a8b
commit fa7475b77a
4 changed files with 4 additions and 4 deletions

View file

@ -9558,7 +9558,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

@ -3056,7 +3056,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

@ -645,7 +645,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

@ -13665,7 +13665,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));