mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
minor cleanup
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Id: tsig.c,v 1.64 2000/05/26 00:16:41 bwelling Exp $
|
* $Id: tsig.c,v 1.65 2000/05/27 00:24:07 bwelling Exp $
|
||||||
* Principal Author: Brian Wellington
|
* Principal Author: Brian Wellington
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -652,16 +652,12 @@ dns_tsig_verify(isc_buffer_t *source, dns_message_t *msg,
|
|||||||
ret = dns_tsigkey_create(keyname, &tsig->algorithm,
|
ret = dns_tsigkey_create(keyname, &tsig->algorithm,
|
||||||
NULL, 0, ISC_FALSE, NULL,
|
NULL, 0, ISC_FALSE, NULL,
|
||||||
now, now,
|
now, now,
|
||||||
mctx, dring, &tsigkey);
|
mctx, dring, &msg->tsigkey);
|
||||||
if (ret != ISC_R_SUCCESS)
|
if (ret != ISC_R_SUCCESS)
|
||||||
goto cleanup_struct;
|
goto cleanup_struct;
|
||||||
dns_message_settsigkey(msg, tsigkey);
|
|
||||||
dns_tsigkey_detach(&tsigkey);
|
|
||||||
return (DNS_R_TSIGVERIFYFAILURE);
|
return (DNS_R_TSIGVERIFYFAILURE);
|
||||||
}
|
}
|
||||||
dns_message_settsigkey(msg, tsigkey);
|
msg->tsigkey = tsigkey;
|
||||||
dns_tsigkey_detach(&tsigkey);
|
|
||||||
tsigkey = dns_message_gettsigkey(msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
key = tsigkey->key;
|
key = tsigkey->key;
|
||||||
|
Reference in New Issue
Block a user