2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

silently ignore additional keytag options

This commit is contained in:
Mark Andrews
2018-12-10 08:41:26 +11:00
committed by Evan Hunt
parent 6f1ac89c1a
commit 35025b6e88

View File

@@ -2079,6 +2079,12 @@ process_keytag(ns_client_t *client, isc_buffer_t *buf, size_t optlen) {
return (DNS_R_OPTERR); 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); client->keytag = isc_mem_get(client->mctx, optlen);
if (client->keytag != NULL) { if (client->keytag != NULL) {
client->keytag_len = (uint16_t)optlen; client->keytag_len = (uint16_t)optlen;