mirror of
https://github.com/isc-projects/bind9.git
synced 2026-04-28 17:46:40 -04:00
silently ignore additional keytag options
(cherry picked from commit 36158e6c96e982768bd33d4090cbe563718534f2) (cherry picked from commit ccca4986b3a14188becb173c4473d9eac1587f66)
This commit is contained in:
parent
665c4ae0cf
commit
d5243a5231
1 changed files with 6 additions and 0 deletions
|
|
@ -2120,6 +2120,12 @@ process_keytag(ns_client_t *client, isc_buffer_t *buf, size_t optlen) {
|
|||
return (DNS_R_OPTERR);
|
||||
}
|
||||
|
||||
/* Silently drop additional keytag options. */
|
||||
if (client->keytag != NULL) {
|
||||
isc_buffer_forward(buf, (unsigned int)optlen);
|
||||
return (ISC_R_SUCCESS);
|
||||
}
|
||||
|
||||
client->keytag = isc_mem_get(client->mctx, optlen);
|
||||
if (client->keytag != NULL) {
|
||||
client->keytag_len = (uint16_t)optlen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue