From b5dd26cc694230ce9526369eb2ac4175a2d90abb Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Wed, 5 Sep 2012 01:26:16 +0200 Subject: s4 dns: Make sure to remember incoming tkey name --- source4/dns_server/dns_crypto.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/dns_server') 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; } -- cgit