summaryrefslogtreecommitdiff
path: root/source4/dns_server/dns_crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dns_server/dns_crypto.c')
-rw-r--r--source4/dns_server/dns_crypto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dns_server/dns_crypto.c b/source4/dns_server/dns_crypto.c
index 14dc4ca69b..7362adc426 100644
--- a/source4/dns_server/dns_crypto.c
+++ b/source4/dns_server/dns_crypto.c
@@ -223,6 +223,10 @@ WERROR dns_verify_tsig(struct dns_server *dns,
}
state->authenticated = true;
+ state->key_name = talloc_strdup(mem_ctx, tkey->name);
+ if (state->key_name == NULL) {
+ return WERR_NOMEM;
+ }
return WERR_OK;
}